This is the main back-end for the marketing website of fira it contains the waitlist api
Provide step-by-step instructions on how to install the project and its dependencies.
pip install -r requirements.txt
cd requirements.txt
the following are the accepted api end points:
The Waitlist Entry API provides endpoints for managing waitlist entries.
https://example.com/api/v1/waitlist/
GET
: Retrieve a list of waitlist entries.POST
: Create a new waitlist entry.
id
(Integer, Read-only): Unique identifier for the waitlist entry.email
(String, Required): Email address of the person.name
(String, Optional): Name of the person.phone
(String, Required): Phone number of the person.
- Method: GET
- URL:
/
- Content Type: application/json
- Status Code: 200 OK
- Content Type: application/json
[
{
"id": 1,
"email": "[email protected]",
"name": "John Doe",
"phone": "+1234567890"
},
{
"id": 2,
"email": "[email protected]",
"name": "Jane Doe",
"phone": "+9876543210"
}
]
- Method: POST
- URL:
/
- Content Type: application/json
- Status Code: 201 created
- Content Type: application/json
{
"email": "[email protected]",
"name": "Miera Doe",
"phone": "+1122334455"
}
git clone -b <branch name> git url
cd website_api
pip install -r requirements.txt
connect all databse variable in setting.py
run
python manage.py makemigrations
python manage.py migrate
run server
python manage.py runserver
test api using post man and other