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

Swagger Documentation #138

Open
4 tasks
alvin-reyes opened this issue Jun 12, 2023 · 2 comments
Open
4 tasks

Swagger Documentation #138

alvin-reyes opened this issue Jun 12, 2023 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@alvin-reyes
Copy link
Collaborator

alvin-reyes commented Jun 12, 2023

Is your feature request related to a problem? Please describe.
We need to be build a better experience for developers by providing documentations that can be used to programmatically integrate delta.

Describe the solution you'd like
We can use swagger and start documenting the REST API handlers.

We have done this on Estuary and we can apply the same process for Delta.

Tasks

@alvin-reyes alvin-reyes added the documentation Improvements or additions to documentation label Jun 12, 2023
@alvin-reyes
Copy link
Collaborator Author

Scaffolding/Initial commit: https://github.com/application-research/delta/tree/swagger-docs

To run the swagger generator

make generate-swagger

The above command will do the following:

  • scan the ./api directory for all the *.go files starting with router.go
  • scan all the annotations on the handlers
  • generate the swagger documentation in ./docs/swagger/swagger.yaml

Check swagger docs using /swagger endpoint.

@dawnkelly09
Copy link

First attempt at annotations for the deal.go API file Swagger docs #143

Will need review, I have some active TODO items that I need to clarify. Requested code review with Alvin for next week when I get back from ETH Waterloo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants