forked from forgejo/forgejo
Move swagger-ui under /api/v1 (#2746)
* Move swagger interface under /api/v1 * Update swagger-ui * Add /api/swagger and prepare for multiple api version * Update test links * Fix footer link
This commit is contained in:
parent
bc8d72666c
commit
619b9b5547
17 changed files with 166 additions and 192 deletions
|
@ -26,7 +26,8 @@ func TestLinksNoLogin(t *testing.T) {
|
|||
"/user/sign_up",
|
||||
"/user/login",
|
||||
"/user/forgot_password",
|
||||
"/swagger",
|
||||
"/api/swagger",
|
||||
"/api/v1/swagger",
|
||||
// TODO: follow this page and test every link
|
||||
"/vendor/librejs.html",
|
||||
}
|
||||
|
@ -47,7 +48,8 @@ func testLinksAsUser(userName string, t *testing.T) {
|
|||
"/explore/organizations?q=test&tab=",
|
||||
"/",
|
||||
"/user/forgot_password",
|
||||
"/swagger",
|
||||
"/api/swagger",
|
||||
"/api/v1/swagger",
|
||||
"/issues",
|
||||
"/issues?type=your_repositories&repo=0&sort=&state=open",
|
||||
"/issues?type=assigned&repo=0&sort=&state=open",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue