Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surcodev/airbnb-clone-backend
Backend service designed to emulate key functionalities of the popular AirBnB platform. Built using Django REST Framework, this API provides endpoints for managing property listings, user accounts, and bookings, offering seamless interactions between hosts and guests.
https://github.com/surcodev/airbnb-clone-backend
cors djangorestframework jsonwebtoken pythonanywhere
Last synced: about 2 months ago
JSON representation
Backend service designed to emulate key functionalities of the popular AirBnB platform. Built using Django REST Framework, this API provides endpoints for managing property listings, user accounts, and bookings, offering seamless interactions between hosts and guests.
- Host: GitHub
- URL: https://github.com/surcodev/airbnb-clone-backend
- Owner: surcodev
- Created: 2024-10-17T23:48:32.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-22T04:47:10.000Z (3 months ago)
- Last Synced: 2024-10-23T07:03:31.075Z (3 months ago)
- Topics: cors, djangorestframework, jsonwebtoken, pythonanywhere
- Language: Python
- Homepage: https://noroot.pythonanywhere.com/
- Size: 6.07 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![1.PNG](/doc/1.PNG)
![2.PNG](/doc/2.PNG)
## LOGIN
```sh
curl -X POST http://127.0.0.1:8000/dj-rest-auth/login/ \
-H "Content-Type: application/json" \
-d '{"username": "user", "email": "[email protected]", "password": "user123$!A"}'
```## LOGOUT
```sh
curl -X POST http://127.0.0.1:8000/dj-rest-auth/logout/ -H "Content-Type: application/json" --cookie "access=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzI4ODQ0MzgxLCJpYXQiOjE3Mjg4NDQwODEsImp0aSI6ImMzOTU0OWNhYjJiMjQ1Zjk5MWQxOTIzMWFkY2VmYTUzIiwidXNlcl9pZCI6NH0.pohLBwqEhZ5ZBwWbOoKzkqQkl8XDKyzLJ5I7ThE9DaI; Path=/; HttpOnly; SameSite=Lax" --cookie "refresh_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcyODkzMDQ4MSwiaWF0IjoxNzI4ODQ0MDgxLCJqdGkiOiIxOTI1ZDhmODgzYjc0YTQwYWM4ZGYzMjIyYjExMmM4YiIsInVzZXJfaWQiOjR9.ndVz0vbq2883Fo3njQFe6ae6bY_pkly-DmKZdgN0WEA; Path=/; HttpOnly; SameSite=Lax"
{"detail":"Successfully logged out."}
```