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

Updated API documentations #481

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Updated API documentations #481

merged 2 commits into from
Aug 27, 2024

Conversation

Xiaocao-Cxh
Copy link
Contributor

@Xiaocao-Cxh Xiaocao-Cxh commented Aug 24, 2024

Updates all APIs available that can be referred to in tornjak-ui-api-documentation.md. But I believe we still miss /api/v1/tornjak/agents. Also, three warning for requestBody comes from 3 delete APIs: "requestBody does not have well-defined semantics for GET, HEAD and DELETE operations."

Explanation: The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined semantics and SHOULD be avoided if possible.

The warning exists only on Swagger Editor, but otherwise looks perfect on VS Code and IntelliJ.

Signed-off-by: Xuhang Cao <ccao@oberlin.edu>
Copy link
Collaborator

@maia-iyer maia-iyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit to fix (removing the TODO section)
But everything else looks perfect! Thank you so much for the contribution!

openapi.yaml Outdated Show resolved Hide resolved
Signed-off-by: Xuhang Cao <ccao@oberlin.edu>
@maia-iyer maia-iyer merged commit 1f92fad into spiffe:dev Aug 27, 2024
1 check passed
@Xiaocao-Cxh Xiaocao-Cxh deleted the APIdocu branch August 27, 2024 18:13
@maia-iyer maia-iyer linked an issue Aug 28, 2024 that may be closed by this pull request
@maia-iyer maia-iyer mentioned this pull request Aug 28, 2024
maia-iyer pushed a commit that referenced this pull request Sep 17, 2024
* Updated API documentations

Signed-off-by: Xuhang Cao <ccao@oberlin.edu>

* Fixing nits

Signed-off-by: Xuhang Cao <ccao@oberlin.edu>

---------

Signed-off-by: Xuhang Cao <ccao@oberlin.edu>
maia-iyer pushed a commit that referenced this pull request Sep 17, 2024
* Updated API documentations

Signed-off-by: Xuhang Cao <ccao@oberlin.edu>

* Fixing nits

Signed-off-by: Xuhang Cao <ccao@oberlin.edu>

---------

Signed-off-by: Xuhang Cao <65797697+Xiaocao-Cxh@users.noreply.github.com>
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.

Document the new API
2 participants