Skip to content

A REST API built with Express and MongoDB. This API provides movie catchphrases and the context of the catchphrase in the movie. (Tutorial)

Notifications You must be signed in to change notification settings

devwithmike/catchphrase-express-mongodb-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catchphrase Express and MongoDB REST API

An API built with Express and MongoDB. Documented with Swagger.

Tutorial available at: dev.to

API Usage

Get all catchphrases

  GET /catchphrases
Optional Parameter Type Description Example
s string Serach Movie Name or Catchphrase ?s=exmpletext
page int Page number. Default: 1 ?page=2
limit int Limit number of catchphrases per page. Default: 10 ?limit=20

Get catchphrase

  GET /catchphrases/:id
Parameter Type Description
id string Required. Id of catchphrase to fetch

Add catchphrase

  POST /catchphrases
{
	"movieName": "AUSTIN POWERS: INTERNATIONAL MAN OF MYSTERY",
	"catchphrase": "Yeah baby, yeah!",
	"movieContext": "Austin Powers, conversing with his partner, Mrs. Kensington"
}

Update catchphrase

  PATCH /catchphrases/:id
Parameter Type Description
id string Required. Id of catchphrase to update
{
	"movieName": "AUSTIN POWERS: INTERNATIONAL MAN OF MYSTERY",
	"catchphrase": "Yeah baby, yeah!",
	"movieContext": "Austin Powers, conversing with his partner, Mrs. Kensington"
}

// All three fields are optional when updating

Remove catchphrase

  DELETE /catchphrases/:id
Parameter Type Description
id string Required. Id of catchphrase to delete

Links

Tutorial

About

A REST API built with Express and MongoDB. This API provides movie catchphrases and the context of the catchphrase in the movie. (Tutorial)

Topics

Resources

Stars

Watchers

Forks