-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
48 additions
and
625 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
55 changes: 0 additions & 55 deletions
55
ex-11/got-episodes-api-python/controller/episodes_controller.py
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Episodes API Python | ||
|
||
The is the Episodes API. For authenticated requests the api will return a list of episodes from Game of Thrones. | ||
|
||
## Install | ||
|
||
```sh | ||
▶ pip install -r requirements.txt | ||
``` | ||
|
||
## Test | ||
|
||
```sh | ||
TBA | ||
``` | ||
|
||
## Run | ||
|
||
|
||
### Config | ||
|
||
Expects the following environment variables to execute properly | ||
|
||
```sh | ||
export NODE_ENV=production | ||
export TENANT_ID="" | ||
export PORT=3100 | ||
export HOST=0.0.0.0 | ||
export CLIENT_ID="" | ||
export CLIENT_SECRET='' | ||
export EPISODES_API_URI="" | ||
export QUOTES_API_URL="" | ||
export QUOTES_API_URI="" | ||
``` | ||
|
||
### Source environments | ||
```sh | ||
▶ source "$CFG_ENV_FILE_DIRECTORY/<your_episodes_env_file>" | ||
``` | ||
|
||
### Run with `main.py` | ||
``` | ||
▶ cd src | ||
▶ ./main.py | ||
``` |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.