Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint: Fetch All Routes #22

Open
MakMuftic opened this issue Oct 29, 2024 · 0 comments · May be fixed by #39
Open

Endpoint: Fetch All Routes #22

MakMuftic opened this issue Oct 29, 2024 · 0 comments · May be fixed by #39

Comments

@MakMuftic
Copy link
Contributor

Implementation details

Develop an API endpoint to retrieve all open routes with the following specifications:

  • Method: GET
  • URL: /routes
  • Additional: Implement end-to-end (e2e) tests to ensure the endpoint retrieves the correct data. Update the Swagger documentation to include detailed information about the endpoint, its parameters, and responses.

Ensure that the endpoint accurately fetches all active routes from the PostgreSQL database and handles data efficiently.

Testing details

  • Write e2e tests to verify that the /routes endpoint returns all active routes.
  • Test the endpoint's response with no routes available to ensure it handles empty datasets gracefully.
  • Ensure that Swagger documentation accurately describes the endpoint's functionality and usage.

Acceptance Criteria

  • The /routes endpoint successfully retrieves all open routes from the database.
  • All e2e tests are implemented and passing.
  • Swagger documentation is updated with accurate and comprehensive details about the endpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant