GithubHelp home page GithubHelp logo

backend's Introduction

backendPotluck Planner API

API Documentation: https://backend-potluck.herokuapp.com/ (UPDATE SO FAR. I have the text document flushed out but endpoints are not available at the moment will flush that out hopefully soon) Users: [GET] /api/users - returns an array filled with user objects similar to the following:

[
  {
        user_id: 1,
        username: "nyriq",
        password: "$2a$08$R//PP9zaFmo5t3RYL4Yh0ONj.68YU2UQ5HlXbt8TbD.WHFMweWCsG",
        name: "nyriq",
        email: "[email protected]"
    },
    {
        user_id: 2,
        username: "huimin",
        password: "$2a$08$6TceWJyijzXrBAQlP.ZsW.o1y1MmmfJaCb3GPlJ.LnC3eYKtiWbzK",
        name: "huimin",
        email: "[email protected]"
    }
]

Authentication:

Method URL Description
[POST] /api/auth/register Requires a username, password, name, and email. Registers a new user.
[POST] /api/auth/login Requires a username and password. Logs the user in.

Users:

Method URL Description
[GET] /api/users/ Returns an array filled with user objects.
[GET] /api/users/:id Returns the user object with the specified user_id.
[DELETE] /api/users/:id Removes the user with the specified user_id and returns the deleted user.
[PUT] /api/users/:id Updates the user with the specified user_id using data from the request body. Returns the modified user

Events:

Method URL Description
[POST] /api/events/ Requires organizer_id, title, date (in the format of mm/dd/yyyy), time (in the format of 03:00), and a location. Returns the event object with the specified event_id.
[GET] /api/events/ Returns an array filled with event objects.
[GET] /api/events/:id Returns the event object with the specified event_id.
[DELETE] /api/events/:id Removes the event with the specified event_id and returns the deleted event.
[PUT] /api/events/:id Updates the event with the specified event_id using data from the request body. Returns the modified event

Guests:

Method URL Description
[GET] /api/events/:id/guests Returns an array filled with guests attending the event.
[POST] /api/events/:id/guests Requires a user_id and a boolean of attending (true or false). Adds a guest to the event.
[DELETE] /api/events/:id/guests Requires user_id Removes the guest with the specified user_id and returns the new list of guests.

Items:

Method URL Description
[GET] /api/events/:id/items Returns an array filled with items for the event.
[POST] /api/events/:id/items Requires an item_name and a name (name of the person bringing the item) and adds the new item to the list of items
[DELETE] /api/events/:id/items Requires item_name Removes the item with the specified item_name and returns the new list of items.

backend's People

Contributors

jessejohns-1 avatar rodgers31 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.