Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
steinsiv authored Nov 23, 2023
1 parent 8b39d92 commit 53fea4f
Show file tree
Hide file tree
Showing 28 changed files with 48 additions and 625 deletions.
22 changes: 0 additions & 22 deletions ex-10/got-episodes-api-python/README.md

This file was deleted.

1 change: 0 additions & 1 deletion ex-11/got-episodes-api-python/.python-version

This file was deleted.

12 changes: 0 additions & 12 deletions ex-11/got-episodes-api-python/README.md

This file was deleted.

Empty file.
55 changes: 0 additions & 55 deletions ex-11/got-episodes-api-python/controller/episodes_controller.py

This file was deleted.

49 changes: 0 additions & 49 deletions ex-11/got-episodes-api-python/core/auth.py

This file was deleted.

52 changes: 0 additions & 52 deletions ex-11/got-episodes-api-python/core/config.py

This file was deleted.

53 changes: 0 additions & 53 deletions ex-11/got-episodes-api-python/data/got_demo_data.py

This file was deleted.

7 changes: 0 additions & 7 deletions ex-11/got-episodes-api-python/data/models.py

This file was deleted.

20 changes: 0 additions & 20 deletions ex-11/got-episodes-api-python/main.py

This file was deleted.

6 changes: 0 additions & 6 deletions ex-11/got-episodes-api-python/package-lock.json

This file was deleted.

45 changes: 45 additions & 0 deletions ex-11/got-episodes-api-python/readme.md
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
```
50 changes: 0 additions & 50 deletions ex-11/got-episodes-api-python/routes/episodes.py

This file was deleted.

2 changes: 1 addition & 1 deletion ex-11/got-episodes-api-python/src/data/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
from pydantic import BaseModel

class Episode(BaseModel):
id: str
id: Optional[str] = "Quote:"
title: str
season: Optional[int] = None
Loading

0 comments on commit 53fea4f

Please sign in to comment.