GET YOUTUBE SUBSCRIBERS CAPSTONE PROJECT
The API provided by this application contains the url as following:
- Base URL :http://localhost:3000
- GET /subscribers : returns an array of
subscribers
present in database.
- GET /subscribers/name : returns an array of
subscribers with only two fields (name & subscribedChannel).
- GET /subscribers/:id : returns the details of a
subscriber with given ID.
- If ":id" in /subscribers/:id is not found in
database
then it returns with an error message with a status code of 400.
Add and delete subscribers using below url :-
- POST /subscribers/add : adds new subscriber to
the database.
- DELETE /subscribers/delete/:id : deletes a
subscriber from the database.