Skip to content

Instantly share code, notes, and snippets.

@mertyildiran
Created July 9, 2021 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mertyildiran/056bf590811428466e29f8273c669ef6 to your computer and use it in GitHub Desktop.
Save mertyildiran/056bf590811428466e29f8273c669ef6 to your computer and use it in GitHub Desktop.
Catflix `mock_config.yaml`
templatingEngine: "Jinja2"
management:
port: 8000
ssl: true
services:
- port: 8081
name: "Movie Database API"
endpoints:
- path: "/3/discover/movie"
response:
status: 200
headers:
Content-Type: application/json; charset=UTF-8
body: "@resources/discover_movie.json.j2"
- path: "/3/trending/all/week"
response:
status: 200
headers:
Content-Type: application/json; charset=UTF-8
body: "@resources/trending_all_week_or_top_rated.json.j2"
- path: "/3/movie/top_rated"
response:
status: 200
headers:
Content-Type: application/json; charset=UTF-8
body: "@resources/trending_all_week_or_top_rated.json.j2"
- path: "/3/discover/tv"
response:
status: 200
headers:
Content-Type: application/json; charset=UTF-8
body: "@resources/discover_tv.json.j2"
- path: "/3/tv/{{id}}"
response:
status: 200
headers:
Content-Type: application/json; charset=UTF-8
body: "@resources/tv.json.j2"
- port: 8082
name: "Image Service"
fallbackTo: "https://loremflickr.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment