Giter Site home page Giter Site logo

codev-back's People

Contributors

arnopensource avatar newintel avatar victormouracarvalho avatar

Watchers

 avatar

codev-back's Issues

Path parameters on rooms entries

Add path parameters on room entries:

  • filter: filter by one or many properties
    • name: name contains string
  • sort: sort by one or many properties
  • date and time: fetch the room's availability for a certain day of the week on a certain time period

Get list of empty rooms

Goal : add a new endpoint /rooms?time=
This endpoint checks the rooms data and return the rooms available at the time period
The rooms data should be refreshed every hour using the ADE API

[META] API Routes

List of all routes

  • /auth
    • GET /auth/check
    • POST /auth/login
    • POST /auth/signup
    • /nfc
      • POST /auth/nfc/login
      • PUT /auth/nfc/{id}
  • /rooms
    • GET /rooms/empty
  • /bookings
  • /users #24
    • GET /users
    • GET /users/{id}
    • #30
    • #32
  • /friends
  • /events #36
    • POST /events
    • GET /events
    • PUT /events/{id}
    • DELETE /events/{id}
    • POST /events/invites - invite (admin)
    • GET /events/invites - see my invites
    • PUT /events/invites/{id} - accept/decline invite - the id is an event id !
    • DELETE /events/invites - cancel invite (admin)
    • GET /events/{id}/invites - see pending invites for the event
    • GET /events/{id}/members - get event members
    • DELETE /events/{id}/members - remove a member (admin)
    • DELETE /events/{id}/me - quit event
    • PUT /events/{id}/admins - share admin rights with a member (admin)

GET /friends/requests

get a list of all friends requests of current logged in user

for actual friends, use #32 use GET /friends

Signup

Add a signup route
POST /signup
{
"email": "",
"password": "",
"nfc": ""
}
The email need to be verified before the account start working

Users

Add routes to get all users (only non-private info, avoid passwords, nfc id etc. ...), get one user, get his friends

PUT /friends

give an answer to a friend request

the profile id must be of someone who is making a friends request to the current user

Better planning fetcher

  • Add availabilities to the database instead of using a go map
  • Update the /rooms endpoints to use the database
  • Algorithm to merge room availabilities from ade and from database
  • Update the database every hour

NFC Login

Add a nfc login route

POST /nfc/login
{
"nfc": ""
}

The route returns a jwt token with the id

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.