Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 841 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 841 Bytes

This is the companion repository with some sample code as used in the video. It has working code for uploading and retrieval of movies. Why not write the rest?

Setup

  • Connect to a local kubernetes cluster
  • Run the postgres installer ./scripts/install-postgres.sh
  • Either run the API locally or push your own docker image and modify the helm chart

Post a movie

curl -X POST http://localhost:8081/movie -H 'Content-Type: application/json' -d '{
    "title": "Avengers: Age of Ultron",
    "year": 2016,
    "cast": [
      "Robert Downey, Jr.",
      "Chris Evans",
      "Chris Hemsworth",
      "Mark Ruffalo"
    ],
    "genres": [
      "Action"
    ]
}'

Retrieve a movie

curl localhost:8081/movies/year/2016