- PUT /:student-id/:propertyName(/:propertyName)
- Stores data within
/data/${studentId}.json
. - If that file or property doesn't exist it is created.
- Should also set nested properties:
curl -X PUT -d '{ "score": 98 }' http://localhost:1337/rn1abu8/courses/calculus/quizzes/ye0ab61
would mean thatrequire('./data/rn1abu8.json').courses.calculus.quizzes.ye0ab61.score === 98
- Stores data within
- GET /:student-id/:propertyName(/:propertyName)
- Retrieves data from
/data/${studentId}.json
. Returns 404 if that file or property doesn't exist. - Should also retrieve nested properties:
curl http://localhost:1337/rn1abu8/courses/calculus
- Retrieves data from
- DELETE /:student-id/:propertyName(/:propertyName)
- Removes data from
/data/${studentId}.json
. Returns 404 if that file or property doesn't exist. - Should also remove nested properties.
- Removes data from
-
Notifications
You must be signed in to change notification settings - Fork 0
GO3LIN/simple-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Latest commit921fcba · | ||||
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published