Giter Site home page Giter Site logo

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

Contributors

feelosophy13 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.