Skip to content

Conversation

penguineer
Copy link
Member

This pull request includes significant updates to the API endpoints, the OpenAPI specification, and the application routing. The changes focus on improving the API structure and adding new endpoints for better functionality.

The API is now in line with our reverse proxy setup.

API Endpoint Updates:

  • Dockerfile: Updated the health check endpoint path to /health from /v0/health. ([DockerfileL11-R11](https://github.com/netz39/Netz39SpaceAPI-Service/pull/4/files#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557L11-R11))
  • src/app.py: Modified the application routing to remove versioning from the endpoint paths and added new routes for /json and /text. ([src/app.pyL100-R114](https://github.com/netz39/Netz39SpaceAPI-Service/pull/4/files#diff-04791d82dd15fdd480f084d7ef65a10789fa5012cb7935f76080763444d48a00L100-R114))

OpenAPI Specification:

  • src/OAS3.yml: Introduced a new OpenAPI specification file defining the API structure, including endpoints for health check, OpenAPI specification retrieval, space API entry in JSON format, space state in plain text, and space state as an image. ([src/OAS3.ymlR1-R73](https://github.com/netz39/Netz39SpaceAPI-Service/pull/4/files#diff-87d62f2296d00782b34f84560e8b9d257e3cc6cb19a8211d89a3b90bfe581451R1-R73))

New Handlers:

  • src/app.py: Added a new handler SpaceStateTextHandler to serve the space state in plain text format. ([src/app.pyR87-R96](https://github.com/netz39/Netz39SpaceAPI-Service/pull/4/files#diff-04791d82dd15fdd480f084d7ef65a10789fa5012cb7935f76080763444d48a00R87-R96))

@penguineer penguineer self-assigned this Nov 2, 2024
@penguineer penguineer merged commit 79f2bb0 into main Nov 2, 2024
2 checks passed
@penguineer penguineer deleted the adapt-api branch November 2, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant