Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/athulmurali/generic-crud-dynamic-crud
- Owner: athulmurali
- Created: 2018-12-07T01:59:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T05:23:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T14:46:17.285Z (3 months ago)
- Topics: api, database, js, mongodb, mongoose, nosql, restful-api
- Language: JavaScript
- Size: 605 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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/66b5811bbf61f0372146Published 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=960Predicates 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/RzfmDm7C4. 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