Giter Site home page Giter Site logo

disaster-relief-rest-api's People

Contributors

agsant01 avatar oremorsiul15 avatar valerieotero avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

disaster-relief-rest-api's Issues

Enable/Disable Users

Requirements:

  • Only a System Administrator or System Manager can disable/enable users.

Register Representative to Organization

Implement POST for /api/supplier/organizations/:orgId/representatives

Reqs

  • System Administrator and System Manager can add representatives to a given Org. Validate the Role
  • A Org Admin can only add representatives to her/his organization, must validate org admin in the Org entity.

Add debug for providers

Description

Debug is the feature that allows to return everything that is in the table via GET.

This will be useful when showing the happy hour.

Example: http://localhost:3000/api/providers/2?debug=true

Functionality

  • The debug flag should be a query via GET.
  • The only allowed values are true and false
  • If the flag is missing the default value to fallback is false
  • If the value is none the specified, then fallback to false

Delivery Method Missing in Some tables

Leave this for last.

  • The delivery method option is not implemented for when user makes a request.
  • Should in requested_resources table, because a Requestor might be able to Pick-Up (lets say) the water, but needs Delivery for the Bulldozers. So de delivery is not a property of the Request, but of the individual resources that are in the request.

Reserve or Purchase a resource

Reserve or purchase a resource. Free resources are reserved. Otherwise, they are purchased:

  • Add a reserve from pgadmin, and I will do a GET on the new reserve.
  • Add a new order from pgadmin, and I will do a GET on the new purchase.
  • I will also look at the GET for all requests from a given user id, and do a GET for all the purchases from a user id.

Implement Login like system.

Does not need to implement with time expiration, just generate a token every time in login.

Will be useful to show Manuel a simple auth-like system.

  • Simple Token-User relationship table, Many-To-One
  • Multiple tokens can exist at any given time for a user.
  • This is just for demonstrative purposes.

Get all resources

  1. See detail of resources, including location on a Google Map (Not required, Extra credit): I will do a GET by resource id

Trending Statistics (Weekly)

Trending statistics (7 day period)

  • Resources in need
  • Resources available
  • Matching between need and availability

Register organization

Implement the POST endpoint for /api/suppliers/organizations to register an Org.

Only an "Individual Supplier" can register an Org and that by default make she/him the OrgAdmin. (change role in user table).

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.