CamiloGarciaLaRotta / Municipal-Tree-Tracker

:deciduous_tree: RESTful API & Web application for a fictional tree tracking system
GNU General Public License v3.0
0 stars 0 forks source link

add API endpoints #1

Closed CamiloGarciaLaRotta closed 5 years ago

CamiloGarciaLaRotta commented 5 years ago

Add the endpoints found in the base API Leverage the Swagger API provided by Flask-RESTPlus

CamiloGarciaLaRotta commented 5 years ago

Base GET/POST/PUT/DELETE for City Municipality Park Tree Civic_Location addressed by 08ad96e2b76f4538d107db5d30027cbd0cd78351 and 68a7f7d134546d9a5a3156e304d9d891d1e451b1

CamiloGarciaLaRotta commented 5 years ago

When the final model is complete, implement the base GET/POST/PUT/DELETE for:

Interesting endpoints to be implemented:

CamiloGarciaLaRotta commented 5 years ago

@ealhomsi This is the original list of endpoints. It is deprecated, it was formulated before the feedback of the TAs Feel free to add any endpoint you need to be implemented here with a brief description of expected I/O

CamiloGarciaLaRotta commented 5 years ago

@ealhomsi I'll begin adding the missing resources and their respective endpoints:

Resource Related Tables Status
assessment assessment DONE
city works_for DONE
user user DONE
user login functionality TODO
transaction transaction DONE
order order DONE
review review DONE
eliashomsi commented 5 years ago

this is it <3 we are done after doing this and implementing the frontend

CamiloGarciaLaRotta commented 5 years ago

@ealhomsi I am done with the endpoints for all resources For the login, is it ok if I just do the following:

Add /uid/ to the URL paths for: Use Case: POST orders (only resident can make order) Use Case: POST reviews (only urban planners can make reviews) Use Case: POST assessement (only env scientists can make assessements)

eliashomsi commented 5 years ago

so basically I only need to endpoints, one to create a user and one to login with an email. GET user/{email} for login POST user/ to create a new user.

CamiloGarciaLaRotta commented 5 years ago

closed by #13