================================================
Project Name: SMS Code Robot
Description: This is a sms code receive website project.
Author Name: cnzxo
Create Time: 2022-8-1 12:20:20
manage.py # Startup project file.
settings.py # Project config file.
urls.py # URL config file.
asgi.py # Synchronous network request.
wsgi.py # Asynchronous network request.# Create a project by django-admin command.
django-admin startproject SMSCodeRobot
# Create an application to the project.
django-admin startapp APIModel
# Generate requirement files.
pip freeze > requirements.txt
# Run project.
python manage.py runserver 80django-4.0.6
beautifulsoup4-4.11.1
requests-2.28.1URL:
/api/countries
Method:
GET
URL:
/api/numbers
Method:
GET
URL:
/api/numbers/{country}/
Method:
GET
REST Parameters:
| Name | Value | Required | Remark |
|---|---|---|---|
| country | - | Yes | submit a country name |
URL:
/api/messages/{number}/
Method:
GET
REST Parameters:
| Name | Value | Required | Remark |
|---|---|---|---|
| number | - | Yes | submit a number |