Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: codeforjapan/BirdXplorer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0191a3ab1932fc4219f2aca72e5bc59d209b32ea
Choose a base ref
..
head repository: codeforjapan/BirdXplorer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3fc71c3386f8131d07c4d85f85de7f31f6d30991
Choose a head ref
Showing with 8 additions and 4 deletions.
  1. +8 −4 api/birdxplorer_api/routers/openapi_doc.py
12 changes: 8 additions & 4 deletions api/birdxplorer_api/routers/openapi_doc.py
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ class FastAPIQueryDocs(FastAPIQueryDocsRequired, total=False):
""",
"openapi_examples": {
"default": {
"summary": "デフォルト",
"summary": "指定しない (デフォルト)",
"value": None,
},
"normal": {
@@ -92,7 +92,7 @@ class FastAPIQueryDocs(FastAPIQueryDocsRequired, total=False):
""",
"openapi_examples": {
"default": {
"summary": "デフォルト",
"summary": "指定しない (デフォルト)",
"value": None,
},
"normal": {
@@ -108,7 +108,7 @@ class FastAPIQueryDocs(FastAPIQueryDocsRequired, total=False):
""",
"openapi_examples": {
"default": {
"summary": "デフォルト",
"summary": "指定しない (デフォルト)",
"value": None,
},
"python": {
@@ -124,7 +124,7 @@ class FastAPIQueryDocs(FastAPIQueryDocsRequired, total=False):
""",
"openapi_examples": {
"default": {
"summary": "デフォルト",
"summary": "指定しない (デフォルト)",
"value": None,
},
"example.com": {
@@ -155,6 +155,10 @@ class FastAPIQueryDocs(FastAPIQueryDocsRequired, total=False):

@dataclass(frozen=True)
class V1DataPostsQueryDocs:
"""
`GET /api/v1/data/posts` のクエリパラメータの OpenAPI ドキュメント
"""

post_id = v1_data_posts_post_id
note_id = v1_data_posts_note_id
created_at_from = v1_data_posts_created_at_from