Giter Club home page Giter Club logo

pet-hotel-back's Introduction

Pet hotel server (backend)

url pública api: http://ec2-52-14-163-166.us-east-2.compute.amazonaws.com/api/

Endpoints

User POST /user/signup - Expects a valid e-mail and password. Returns a 201 code when succesfully signup. POST /user/login - Expects a registered e-mail and password. Returns a valid token.

Client GET /client/ - Expects a validation token. Returns a specific client identified by token. POST /client/ - PATCH /client/ -

Pet GET /pet/ - Expects a validation token. Returns the list of all pets from the registered client. GET /pet/:id - Expects a validation token and the booking id. Returns a specific pet from registered user. POST /pet/ - PATCH /pet/ - DELETE /pet/ -

Booking GET /booking/ - Expects a validation token. Returns the list of all bookings from the registered client. GET /booking/:id - Expects a validation token and the booking id. Returns a specific booking from registered user. POST /booking/ - Expects a validation token and data as Book Schema. PUT /booking/ - DELETE /booking/ -

Accommodations GET /adm/accommodation/ - Expects a validation token. Returns the list of all bookings from the registered client. POST /adm/accommodation/ - PATCH /adm/accommodation/ - DELETE /adm/accommodation/ -

General POST /file-upload - Expects an image, on field "img-upload" and returns the secure image url on Cloudinary.

pet-hotel-back's People

Contributors

rodrigomatosrj avatar lauraferraz5 avatar

Stargazers

Thalía Berger 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.