Skip to content

Commit

Permalink
Merge pull request #31 from internetofwater/comid-source
Browse files Browse the repository at this point in the history
openapi fixes
gzt5142 authored Dec 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 3eb0be7 + 002f957 commit d713e5c
Showing 8 changed files with 5 additions and 1,320 deletions.
6 changes: 3 additions & 3 deletions src/nldi/api/main.py
Original file line number Diff line number Diff line change
@@ -237,9 +237,9 @@ def openapi_json(self) -> Dict[str, Any]:
# This would require that we add methods here for each endpoint, which might be a good idea for other
# reasons as well. It would also give us consistent docstring format for the plugins.

OAS_SCHEMAS = util.load_yaml(pathlib.Path(__file__).parent / "schemas.yaml") # noqa: N806
OAS_PARAMETERS = util.load_yaml(pathlib.Path(__file__).parent / "parameters.yaml") # noqa: N806
OAS_RESPONSES = util.load_yaml(pathlib.Path(__file__).parent / "responses.yaml") # noqa: N806
OAS_SCHEMAS = util.load_yaml(pathlib.Path(__file__).parent / "openapi" / "schemas.yaml") # noqa: N806
OAS_PARAMETERS = util.load_yaml(pathlib.Path(__file__).parent / "openapi" / "parameters.yaml") # noqa: N806
OAS_RESPONSES = util.load_yaml(pathlib.Path(__file__).parent / "openapi" / "responses.yaml") # noqa: N806

RESPONSES = { # noqa: N806
"400": {"$ref": "#/components/responses/400"},
Original file line number Diff line number Diff line change
@@ -16,8 +16,8 @@ sourceid:
type: string

comid:
name: comid,
in: path,
name: comid
in: path
description: NHDPlus common identifier
required: True,
schema:
File renamed without changes.
File renamed without changes.
455 changes: 0 additions & 455 deletions src/nldi/openapi/__init__.py

This file was deleted.

141 changes: 0 additions & 141 deletions src/nldi/openapi/parameters.yaml

This file was deleted.

497 changes: 0 additions & 497 deletions src/nldi/openapi/responses.yaml

This file was deleted.

222 changes: 0 additions & 222 deletions src/nldi/openapi/schemas.yaml

This file was deleted.

0 comments on commit d713e5c

Please sign in to comment.