Api for manage bookmarks. Add new bookmark type photo or video saved on mongoDB database and get list from videos or photos links.
- Install modules
npm i
- Run server
npm start
- Run tests
npm test
-
Get data from external link for video example
-
Get data from external link for photo example
-
Video links
- url :
- Post new video link
Request : POST
key : url
- Get list of videos
request : GET
- Get one video
Get _id value of one document saved and pass in params
example : localhost:3000/api/videos/6284f5aec97d824f1fd60934
- Update video
Get _id value of one document saved and pass in params
example : localhost:3000/api/videos/6284f5aec97d824f1fd60934
Set values title, author, creationDate, publishDate, thumbnail, type, width, height and duration on body
- Delete video
Get _id value of one document saved and pass in params
example : localhost:3000/api/videos/6284f5aec97d824f1fd60934
- url :
-
Photo links
- url :
- Post new photo link
request : POST
key : url
- Get list of photos
request : GET
- Get one photo
Get _id value of one document saved and pass in params
example : localhost:3000/api/photos/6284f5aec97d824f1fd60934
- Update photo
Get _id value of one document saved and pass in params
example : localhost:3000/api/photos/6284f5aec97d824f1fd60934
Set values title, author, creationDate, publishDate, thumbnail, type, width, height on body
- Delete photo
Get _id value of one document saved and pass in params
example : localhost:3000/api/photos/6284f5aec97d824f1fd60934
- url :
- Run unit tests
npm test