Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/athulmurali/generic-crud-dynamic-crud


https://github.com/athulmurali/generic-crud-dynamic-crud

api database js mongodb mongoose nosql restful-api

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

# generic-crud-dynamic-crud

git clone `url`

npm `install`

npm `start`

Then connect with apis in postman

To use my collection in postman
https://www.getpostman.com/collections/66b5811bbf61f0372146

Published collection :
The following contains all json data required and requests made.

You can find the responses for each api

https://documenter.getpostman.com/view/3505107/RzfmDm7C

### Design

https://github.com/athulmurali/generic-crud-dynamic-crud/wiki/Design

### Notes:

_id is passed as part of input to make it easier. Mongo doesnt not have an autoincrement function for _id.
Please refer the following piazza post :

https://piazza.com/class/jlpc7xkhjcm5d5?cid=954

Arc
https://piazza.com/class/jlpc7xkhjcm5d5?cid=960

Predicates are also done. Please find the middleware 'queryFilter' to see the predicate function

"/api/movie/123/actor?id=234&__v=0"

If you wanna try,

1. First send a delete request to https://generic-crud-mongoose.herokuapp.com/api/
(this cleans up the database and makes it test ready)
2. Then try the sequence given in the req document. https://docs.google.com/document/d/1iTEPLCcyUdaOul0Ou3_oD1UwS5ecTSoTAHYuU76QTPY/edit
3. Or refer to the tested results
https://documenter.getpostman.com/view/3505107/RzfmDm7C

4. Also, you can try downloading the postman requests from
https://www.getpostman.com/collections/66b5811bbf61f0372146

### [Youtube](www.youtube.com) ###

https://www.youtube.com/watch?v=S7dyi5N__tc&list=PLw0yPKqs07m18Ry81l-MSvR_MImwVs2NN