Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
91a9ef0
DRAFT: OpenAPI specification
simonsan Oct 7, 2022
52f43df
Merge branch 'main' into openapi_spec
simonsan Oct 7, 2022
11e5471
Update .gitignore
simonsan Oct 7, 2022
d3168ba
Some small fixes
simonsan Oct 8, 2022
ff7bffc
Add tags to endpoints
simonsan Oct 8, 2022
5870a5c
Adding Boilerplate for Errors
simonsan Oct 8, 2022
a27b86a
Added more responses and Ulid pattern
simonsan Oct 8, 2022
5f6c534
Fix more problems with security audit
simonsan Oct 8, 2022
48d7c1c
Replace datetime with date-time
simonsan Oct 8, 2022
fdd4c33
Rename properties
simonsan Oct 8, 2022
d69a78e
Add default response to endpoints
simonsan Oct 8, 2022
e8a1825
Add more schemas
simonsan Oct 8, 2022
2260c50
New generation from openapi file
simonsan Oct 8, 2022
8c8a35a
Add some more query parameters, change GameID to enum
simonsan Oct 9, 2022
99bf9cd
Reset last modified
simonsan Oct 9, 2022
0a02591
Add query parameters to match up with aoe2.net feature set
simonsan Oct 9, 2022
ac4d925
Fix a few more security problems
simonsan Oct 9, 2022
b8a0c77
Fix typo Adminstration=>Administration
simonsan Oct 9, 2022
f2f33f6
Commit new generation of server files
simonsan Oct 9, 2022
8c0379a
Fix typo
simonsan Oct 11, 2022
5f20b83
Changes to search parameter
simonsan Oct 12, 2022
979cee9
Add draft responses
simonsan Oct 12, 2022
db066c7
add response template
simonsan Oct 12, 2022
668a0d0
Add teams to responses
simonsan Oct 12, 2022
69736b9
Add private and password_protected to fields
simonsan Oct 12, 2022
3523601
Add translations
simonsan Oct 12, 2022
61b53ed
Refine types of parameters
simonsan Oct 13, 2022
8fe4c2d
Clean example
simonsan Oct 13, 2022
5a1ab90
add ref parameters
simonsan Oct 13, 2022
6a05ce0
Make OpenAPI file more compact by using references in parameters and …
simonsan Oct 13, 2022
9903ea9
More references and some more descriptive summaries
simonsan Oct 13, 2022
1c54603
Add TODO list for responses
simonsan Oct 13, 2022
a611fed
Update
simonsan Oct 13, 2022
6582774
Add language enum
simonsan Oct 13, 2022
8e48417
Adding more parameters
simonsan Oct 13, 2022
f219085
Replace 'count' and 'start' parameters with 'offset' and 'limit'
simonsan Oct 13, 2022
fe958a1
Retagging temporarily for better overview
simonsan Oct 13, 2022
6b77baf
Collect TODO responses
simonsan Oct 13, 2022
4ad2c08
Adding languages array to query parameters
simonsan Oct 13, 2022
e727cba
Adding basetemplate
simonsan Oct 14, 2022
7c8b5cd
Template stuff
simonsan Oct 14, 2022
493c748
Feddback annotations and TODOs
simonsan Oct 14, 2022
a332078
Adding datetime and timestamp filters
simonsan Oct 14, 2022
feeea30
Remove old datetime parameter
simonsan Oct 14, 2022
661cd7b
Refine /dumps
simonsan Oct 14, 2022
2cd0ee4
Refine /dumps/{dump_id}
simonsan Oct 14, 2022
bb89423
Refine layout
simonsan Oct 14, 2022
7fbc7bc
Add components endpoint
simonsan Oct 14, 2022
7f269af
Add some more descriptions to endpoints
simonsan Oct 14, 2022
4079ae1
Some TODO descriptions
simonsan Oct 14, 2022
8119570
Split responses into modules for easier design
simonsan Oct 16, 2022
adc105a
Add more descriptions and fix operation naming
simonsan Oct 18, 2022
3125be5
Update TODO list and descriptions
simonsan Oct 18, 2022
51fc74e
Add more base templates
simonsan Oct 18, 2022
d946dd6
Adding info to templates
simonsan Oct 18, 2022
102ef2f
Change discord social
simonsan Oct 18, 2022
65c756c
Add user tempalte
simonsan Oct 18, 2022
89a6609
Update user template
simonsan Oct 18, 2022
b7540d4
Adding stats tempalte from aoe_playerbase_stats
simonsan Oct 18, 2022
5338687
Rename stats template
simonsan Oct 18, 2022
365fa8d
Draft Games endpoint response
simonsan Oct 18, 2022
0046ee6
Add definitions placeholder
simonsan Oct 18, 2022
dc1e174
Add overall matches and change player name field
simonsan Oct 20, 2022
65a0f7f
Add x-api-id and x-audience to openapi spec
simonsan Oct 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,6 @@ dmypy.json

# Cython debug symbols
cython_debug/

# VSCode/VSCodium
.vscode/
67 changes: 65 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.flake8
.gitignore
.openapi-generator-ignore
Dockerfile
README.md
docker-compose.yaml
Expand All @@ -9,14 +8,78 @@ pyproject.toml
requirements.txt
setup.cfg
src/openapi_server/apis/__init__.py
src/openapi_server/apis/account_registration_api.py
src/openapi_server/apis/administration_api.py
src/openapi_server/apis/api_token_validation_api.py
src/openapi_server/apis/authentication_api.py
src/openapi_server/apis/database_api.py
src/openapi_server/apis/default_api.py
src/openapi_server/apis/definition_api.py
src/openapi_server/apis/information_api.py
src/openapi_server/apis/internal_api.py
src/openapi_server/apis/leaderboards_api.py
src/openapi_server/apis/match_data_api.py
src/openapi_server/apis/profile_administration_api.py
src/openapi_server/apis/ratings_api.py
src/openapi_server/apis/search_api.py
src/openapi_server/apis/statistics_api.py
src/openapi_server/apis/status_check_api.py
src/openapi_server/apis/team_administration_api.py
src/openapi_server/apis/teams_api.py
src/openapi_server/apis/tournament_administration_api.py
src/openapi_server/apis/tournaments_api.py
src/openapi_server/apis/user_administration_api.py
src/openapi_server/main.py
src/openapi_server/models/__init__.py
src/openapi_server/models/error.py
src/openapi_server/models/accepted.py
src/openapi_server/models/authorization_header.py
src/openapi_server/models/count_param.py
src/openapi_server/models/extra_models.py
src/openapi_server/models/forbidden_error.py
src/openapi_server/models/game_id.py
src/openapi_server/models/illegal_input_error.py
src/openapi_server/models/language_string.py
src/openapi_server/models/match_id.py
src/openapi_server/models/match_status.py
src/openapi_server/models/md5.py
src/openapi_server/models/no_content.py
src/openapi_server/models/not_acceptable_error.py
src/openapi_server/models/not_found_error.py
src/openapi_server/models/not_implemented_error.py
src/openapi_server/models/relic_link_id.py
src/openapi_server/models/request_timeout_error.py
src/openapi_server/models/search_param.py
src/openapi_server/models/server_error.py
src/openapi_server/models/service_unavailable_error.py
src/openapi_server/models/since_param.py
src/openapi_server/models/start_param.py
src/openapi_server/models/steam_id.py
src/openapi_server/models/timeframe.py
src/openapi_server/models/too_many_requests_error.py
src/openapi_server/models/ulid.py
src/openapi_server/models/unauthorized_error.py
src/openapi_server/models/unsupported_media_type_error.py
src/openapi_server/models/www_authenticate.py
src/openapi_server/security_api.py
tests/conftest.py
tests/test_account_registration_api.py
tests/test_administration_api.py
tests/test_api_token_validation_api.py
tests/test_authentication_api.py
tests/test_database_api.py
tests/test_default_api.py
tests/test_definition_api.py
tests/test_information_api.py
tests/test_internal_api.py
tests/test_leaderboards_api.py
tests/test_match_data_api.py
tests/test_profile_administration_api.py
tests/test_ratings_api.py
tests/test_search_api.py
tests/test_statistics_api.py
tests/test_status_check_api.py
tests/test_team_administration_api.py
tests/test_teams_api.py
tests/test_tournament_administration_api.py
tests/test_tournaments_api.py
tests/test_user_administration_api.py
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"openapi:v3": "file:///c%3A/Users/dailyuse/dev-src/librematch-backend/openapi.yaml"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- API version: 1.0.0-DRAFT
- Build package: org.openapitools.codegen.languages.PythonFastAPIServerCodegen

## Requirements.
Expand Down
34 changes: 34 additions & 0 deletions docs/design/responses/TODO_RESPONSES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Responses that need to be designed

## TODO

- GET /application/status
- GET /dumps/{timeframe}
- GET /users/validate
- GET /games/{game_id}/definitions
- GET /games/{game_id}/info

### Blocking

- GET /games
- GET /games/{game_id}
- GET /games/{game_id}/matches
- GET /games/{game_id}/leaderboards
- GET /games/matches/{match_uuid}
- GET /profiles
- GET /profiles/{relic_link_id}
- GET /profiles/{relic_link_id}/matches
- GET /profiles/{relic_link_id}/ledger
- GET /leaderboards
- GET /leaderboards/{leaderboard_id}
- GET /leaderboards/{leaderboard_id}/matches

## Done

- GET /games/matches/{match_uuid}
- GET /profiles/search?steam_id
- GET /profiles/search?alias

## Notes

- do we need ranks/percentiles in ratinghistory, so people can use that to create a graph of profiles also for their ranking at a certain moment in time? (-> Coolio)
Loading