-
Notifications
You must be signed in to change notification settings - Fork 354
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
Pull Requests: Create swagger spec #8168
Conversation
♻️ PR Preview 48679e6 has been successfully destroyed since this PR has been closed. 🤖 By surge-preview |
bf02d4d
to
61c150c
Compare
61c150c
to
6792b70
Compare
This reverts commit 6792b70.
Actual changed files:
All the rest are auto generated code |
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.
LGTM,
See minor comments.
It'll probably require some changes soon once I'll start implementing the UI, but we'll work on this as we go.
pkg/api/controller.go
Outdated
writeResponse(w, r, http.StatusNotImplemented, nil) | ||
} | ||
|
||
func (c *Controller) DeletePullRequest(w http.ResponseWriter, r *http.Request, repository string, pullRequest string) { |
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.
Should be repositoryID
and pullRequestID
.
Also relevant for GetPullRequest
and UpdatePullRequest
.
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.
For repository our convention in all other functions is repository
I'll update pullRequest
- in: path | ||
name: repository | ||
required: true | ||
schema: |
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.
What about description?
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.
Pretty straightforward, I don't think repository needs any elaboration
description: too many requests | ||
default: | ||
$ref: "#/components/responses/ServerError" | ||
patch: |
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.
Note that in the Design Issue it's designed different -
But what's written in the PR is far better (hence I think the design should be updated).
Closes #8167
Change Description
Create swagger spec, generated code and controller stubs for pull requests
Background
Epic