- Depends on authenticator
Business logic for nomad comes here.
- Python
- Docker
- mongo
-
Create a virtual environment
-
pip install poetry
-
poetry install
-
uvicorn nomad.main:app --reload --host=0.0.0.0
curl --request POST \
--url http://192.168.0.180:8000/place \
--header 'Authorization: Bearer b53dd7a1' \
--header 'Basic: ' \
--header 'Content-Type: application/json' \
--data '{
"name": "imax",
"city": "hyderabad",
"pincode": "500044",
"state": "telangana",
"rating": 3.75
}'
curl --request GET \
--url http://192.168.0.180:8000/destinations \
--header 'Authorization: Bearer b53dd7a1' \
--header 'Content-Type: application/json' \
--data '{
"state": "Telangana"
}'
curl --request GET \
--url http://192.168.0.180:8000/destinations \
--header 'Authorization: Bearer b53dd7a' \
--header 'Content-Type: application/json' \
--data '{
"state": "Telangana"
}'
curl --request GET \
--url http://192.168.0.180:8000/destinations \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"state": "Telangana"
}'