Commit c63ab0b
committed
Add endpoint to fetch filters in JSON format
While this is an API endpoint consumed by the bot, keep it in the
`resources` app instead of the `api` app, as all the logic and data for
resources is contained within the `resources` app and we don't want to
start messing around with that.
The response format from the endpoint is as follows:
{
"topics": [
"algorithms-and-data-structures",
"data-science",
"databases",
"discord-bots",
"game-development",
"general",
"microcontrollers",
"security",
"software-design",
"testing",
"tooling",
"user-interface",
"web-development",
"other"
],
"payment_tiers": [
"free",
"paid",
"subscription"
],
"type": [
"book",
"community",
"course",
"interactive",
"podcast",
"project-ideas",
"tool",
"tutorial",
"video"
],
"difficulty": [
"beginner",
"intermediate"
]
}
Closes #710.1 parent e51d80a commit c63ab0b
File tree
3 files changed
+23
-2
lines changed- pydis_site/apps/resources
- tests
3 files changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments