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:
@ -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",
|
||||
|
Reference in New Issue
Block a user