Movie Database API Documentation


GET

Endpoint: /api/movie?year={int}&title={string}

Sample Output:

https://{endpoint}/api/movie?year=1933&title=King Kong

{ "Item": { "year": 1933, "info": { "actors": ["Fay Wray", "Robert Armstrong", "Bruce Cabot"], "release_date": "1933-03-07T00:00:00Z", "plot": "A film crew goes to a tropical island for an exotic location shoot and discovers a colossal giant gorilla who takes a shine to their female blonde star.", "genres": ["Adventure", "Fantasy", "Horror"], "image_url": "http://ia.media-imdb.com/images/M/MV5BMTkxOTIxMDU2OV5BMl5BanBnXkFtZTcwNjM5NjQyMg@@._V1_SX400_.jpg", "directors": ["Merian C. Cooper", "Ernest B. Schoedsack"], "rating": 8, "rank": 3551, "running_time_secs": 6000 }, "title": "King Kong" } }




POST


Endpoint: /api/movie


Sample Request:

https://{endpoint}/api/movie

{ "year": 1944, "title": "King Kong 2", "info": { "plot" : "King Kong Sequel Part 2", "rating": 5, "rank": 100, "running_time_secs": 5821 } }

Sample Response:

{ "ResponseMetadata": { "HTTPHeaders": { "connection": "keep-alive", "content-length": "2", "content-type": "application/x-amz-json-1.0", "date": "Thu, 18 Nov 2021 08:28:54 GMT", "server": "Server", "x-amz-crc32": "2745614147", "x-amzn-requestid": "01J05GU8NHHHL4FSD8FMG4VCH7VV4KQNSO5AEMVJF66Q9ASUAAJG" }, "HTTPStatusCode": 200, "RequestId": "01J05GU8NHHHL4FSD8FMG4VCH7VV4KQNSO5AEMVJF66Q9ASUAAJG", "RetryAttempts": 0 } }




PUT


Endpoint: /api/movie


Sample Request:

https://{endpoint}/api/movie

{ "year": 1944, "title": "King Kong 2", "info": { "plot" : "King Kong Sequel Part 2", "rating": 5, "genres": ["Adventure", "Fantasy", "Horror"], "rank": 100, "running_time_secs": 5821 } }

Sample Response:

{ "ResponseMetadata": { "HTTPHeaders": { "connection": "keep-alive", "content-length": "2", "content-type": "application/x-amz-json-1.0", "date": "Thu, 18 Nov 2021 08:41:27 GMT", "server": "Server", "x-amz-crc32": "2745614147", "x-amzn-requestid": "B0KS1LP7C7SGF1F79BIB7R8FTVVV4KQNSO5AEMVJF66Q9ASUAAJG" }, "HTTPStatusCode": 200, "RequestId": "B0KS1LP7C7SGF1F79BIB7R8FTVVV4KQNSO5AEMVJF66Q9ASUAAJG", "RetryAttempts": 0 } }

DELETE

Endpoint: /api/movie?year={int}&title={string}

Sample Output:

https://{endpoint}/api/movie?year=1944&title=King Kong 2

{ { "msg": "Delete successful" }