Created
July 9, 2021 09:27
-
-
Save mertyildiran/056bf590811428466e29f8273c669ef6 to your computer and use it in GitHub Desktop.
Catflix `mock_config.yaml`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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