-
Notifications
You must be signed in to change notification settings - Fork 2
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
[#114] Swagger API generator #115
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried importing build swagger.json
using swagger website, and some errors were shown. Is that normal?
They are produced because of bad |
cf4ac95
to
4bd120e
Compare
Ok now tests don't pass. Maybe the problem was fixed after #113 had been closed, so rebase on main will help. Firstly I will address the rest of the comments, and then rebase and try to fix the CI tests fails |
Problem: list of tuples - [(EntryPath, EntryPath)] - used in the WebAPI for `copy` and `rename` causes errors in Swagger docs. See #115 (comment) Solution: introduce type `PairObject` just to fix this error.
I've tried to rebase, but I didn't manage to. This error appears after rebasing the first commit:
I think after the commits are approved, I can squash everything except two last commits, perhaps it will make the rebase easier. |
Problem: list of tuples - [(EntryPath, EntryPath)] - used in the WebAPI for `copy` and `rename` causes errors in Swagger docs. See #115 (comment) Solution: introduce type `PairObject` just to fix this error.
6ae301a
to
4f92bfb
Compare
8220515
to
421a615
Compare
Problem: we don't have documentation for our `coffer Web API`. Solution: added executable `coffer-swagger-api` which generates Swagger docs.
Problem: This typeclass is not used anywhere. Solution: Delete it.
b6bb197
to
ad1d1a5
Compare
Ok, I've added:
|
@sancho20021 can you approve please? ^^ |
The docs for this branch can be seen here: https://petstore.swagger.io/?url=https://raw.githubusercontent.com/serokell/coffer/dk318/%2523114-swagger-api/docs/swagger.json#/ |
@dcastro Sure! Just approve or do a review and approve? |
@sancho20021 If you have the time, a review would be welcome as well 😄 if not, that's fine too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dcastro Ok. I'm on vacation 😄 so I'll let myself just approve)
Description
Problem
We don't have documentation for our
coffer Web API
.Solution
Added executable
coffer-swagger-api
which generatesSwagger docs.
Related issue(s)
Fixed #
✅ Checklist for your Pull Request
Related changes (conditional)
Tests
silently reappearing again.
Documentation
Stylistic guide (mandatory)