mypetneighbor_server's Introduction
To access token-access-only API endpoints, perform the following steps: - obtain access token by submitting correct user login credentials to the login API endpoint: /login/ - authorization username is the email address - Place the access token inside the HTTP Headers with "x-access-token" as the key and the token as the value. - token expires in 3 hours ENDPOINTS FOR LOGIN AUTHENTICATION name: login() endpoint: /login/ methods: GET token required: no note: make a GET request to the API endpoint with username and password in the HTTP Authorization header to get a token back as respose. ENDPOINT FOR USERS name: get_users() endpoint: /users/ methods: GET token required: no name get_nearby_users() endpoint: /users/nearby/<longitude>/<latitude>/<max_distance>/ methods: GET token required: no name: add_user() endpoint: /user/create/ methods: POST token required: yes input JSON params: name: update_user() endpoint: /user/update/ methods: PUT token required: yes input JSON params: name: get_user() endpoint: /user/<user_id>/ methods: GET token required: no name: delete_user() endpoint: /user/delete/ methods: DELETE token required: yes ENDPOINTS FOR PETS name: get_user_pets() endpoint: /user/<user_id>/pets/ methods: GET token required: no name: add_pet() endpoint: /pet/add/ methods: POST token required: yes input JSON params: name: get_pet() endpoint: /pet/<pet_id>/ methods: GET token required: no name: update_pet() endpoint: /pet/<pet_id>/update/ methods: PUT token required: yes input JSON params: name: delete_pet() endpoint: /pet/<pet_id>/delete/ methods: DELETE token required: yes ENDPOINTS FOR PETSIT REQUESTS ENDPOINTS FOR REVIEWS ENDPOINTS FOR PAYMENTS
mypetneighbor_server's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.