GET vs POST swagger.json #1525

Closed
opened 2025-11-02 04:03:52 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @flyinprogrammer on GitHub (Feb 13, 2018).

Was this file generated?
fbdc00f464/public/swagger.v1.json (L3227)

It seems this is using that json file:
https://try.gitea.io/api/swagger#/

But then what's going on between these three methods?
https://github.com/go-gitea/gitea/blob/master/routers/api/v1/repo/release.go#L16
https://github.com/go-gitea/gitea/blob/master/routers/api/v1/repo/release.go#L59
https://github.com/go-gitea/gitea/blob/master/routers/api/v1/repo/release.go#L99

And why is the swagger json wrong?
I'm happy to submit a patch - I just wasn't quite sure what was going on!

Originally created by @flyinprogrammer on GitHub (Feb 13, 2018). Was this file generated? https://github.com/go-gitea/gitea/blob/fbdc00f46461bec024026b23f85fd1933ead6a96/public/swagger.v1.json#L3227 It seems this is using that json file: https://try.gitea.io/api/swagger#/ But then what's going on between these three methods? https://github.com/go-gitea/gitea/blob/master/routers/api/v1/repo/release.go#L16 https://github.com/go-gitea/gitea/blob/master/routers/api/v1/repo/release.go#L59 https://github.com/go-gitea/gitea/blob/master/routers/api/v1/repo/release.go#L99 And why is the swagger json wrong? I'm happy to submit a patch - I just wasn't quite sure what was going on!
GiteaMirror added the type/bug label 2025-11-02 04:03:52 -06:00
Author
Owner

@captn3m0 commented on GitHub (Apr 17, 2018):

👍

image

However, this seems to be fixed on try.gitea.io somehow?

image

I'm running 1.4.0+3-g641d481 which shouldn't be far from master.

@captn3m0 commented on GitHub (Apr 17, 2018): :+1: ![image](https://user-images.githubusercontent.com/584253/38891647-99a50e34-42a2-11e8-8ae9-769233b30ab9.png) However, this seems to be fixed on `try.gitea.io` somehow? ![image](https://user-images.githubusercontent.com/584253/38891700-b91345ce-42a2-11e8-8a8e-5d3b1e8b9db8.png) I'm running `1.4.0+3-g641d481` which shouldn't be far from master.
Author
Owner

@sapk commented on GitHub (Apr 17, 2018):

It was added/fixed by #3478 but it hadn't be backported to v1.4 branch since it is a new feature. I submitted #3811 to be sure that swagger is generated in PR that need it.

@sapk commented on GitHub (Apr 17, 2018): It was added/fixed by #3478 but it hadn't be backported to v1.4 branch since it is a new feature. I submitted #3811 to be sure that swagger is generated in PR that need it.
Author
Owner

@stale[bot] commented on GitHub (Jan 28, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 28, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@adelowo commented on GitHub (Jan 28, 2019):

I believe this can be closed

@adelowo commented on GitHub (Jan 28, 2019): I believe this can be closed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1525