Skip to content

Wrong swagger versioning - always 1.1.1 #8169

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

Closed
1 of 3 tasks
gregzawadzki opened this issue Sep 13, 2019 · 4 comments
Closed
1 of 3 tasks

Wrong swagger versioning - always 1.1.1 #8169

gregzawadzki opened this issue Sep 13, 2019 · 4 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/docs This PR mainly updates/creates documentation

Comments

@gregzawadzki
Copy link

Firstly i installed 1.8.3 (did not notice docker specified this one) and started testing how to migrate myself via API from bitBucket and add topics. Was getting 404 but had properly used API for adding topics.
I was using documentation from try.gitea server which stated it's version 1.1.1 After a while I found there is API documentation for each installation and my v 1.8 did not have topics yet. Upgraded to 1.9 and it did not have topics yet (still 1.1.1). Then upraded to beta 1.10 and finally in my copy of swagger i had my dreamed of topics. But docs is still 1.1.1

My suggestion is just to update version of docs as it changes. Because different docs revisions have same version number which can be confusing

Trying it out now and it seems (for API) not so painless one would say, but i still think gitea is great from what I see! ❤️

  • Gitea version (or commit ref): 1.9.2/1.10.x
  • Git version: does not apply
  • Operating system: does not apply
  • Database (use [x]):Does not apply
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: Does not apply

Description

@lunny lunny added the type/docs This PR mainly updates/creates documentation label Sep 13, 2019
@stale
Copy link

stale bot commented Nov 12, 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 stale bot added the issue/stale label Nov 12, 2019
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Nov 12, 2019
@stale stale bot removed the issue/stale label Nov 12, 2019
@6543
Copy link
Member

6543 commented Dec 28, 2019

@6543
Copy link
Member

6543 commented Dec 28, 2019

half working solution:
if you replace 1.1.1 with {{AppVer}}

at https://github.com/go-gitea/gitea/blob/master/routers/api/v1/api.go#L12

It works with stable versions but on dev the '+' mess around and you get 1.11.0+dev-517-g1ea447aed for example

ali-abrar added a commit to obsidiansystems/gitea-api that referenced this issue Jun 22, 2020
The API version didn't automatically change because of
go-gitea/gitea#8169
@noerw
Copy link
Member

noerw commented Feb 28, 2021

closed by #14654

It works with stable versions but on dev the '+' mess around and you get 1.11.0+dev-517-g1ea447aed for example

tracked in #14706

@noerw noerw closed this as completed Feb 28, 2021
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

No branches or pull requests

4 participants