Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
petitminion
funkwhale
Commits
7e4492e5
Commit
7e4492e5
authored
4 years ago
by
Ciarán Ainsworth
Browse files
Options
Downloads
Patches
Plain Diff
Update swagger docs to allow relative URLs
parent
d4067bf0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dev.yml
+1
-1
1 addition, 1 deletion
dev.yml
docs/build_swagger.sh
+1
-1
1 addition, 1 deletion
docs/build_swagger.sh
docs/swagger.yml
+1
-2
1 addition, 2 deletions
docs/swagger.yml
with
3 additions
and
4 deletions
dev.yml
+
1
−
1
View file @
7e4492e5
...
...
@@ -154,7 +154,7 @@ services:
-
"
8001:8001"
api-docs
:
image
:
swaggerapi/swagger-ui:v3.
26.0
image
:
swaggerapi/swagger-ui:v3.
37.2
environment
:
-
"
API_URL=/swagger.yml"
ports
:
...
...
This diff is collapsed.
Click to expand it.
docs/build_swagger.sh
+
1
−
1
View file @
7e4492e5
#!/bin/bash -eux
SWAGGER_VERSION
=
"3.
13.6
"
SWAGGER_VERSION
=
"3.
37.2
"
TARGET_PATH
=
${
TARGET_PATH
-
"swagger"
}
rm
-rf
$TARGET_PATH
/tmp/swagger-ui
git clone
--branch
=
"v
$SWAGGER_VERSION
"
--depth
=
1
"https://github.com/swagger-api/swagger-ui.git"
/tmp/swagger-ui
...
...
This diff is collapsed.
Click to expand it.
docs/swagger.yml
+
1
−
2
View file @
7e4492e5
openapi
:
"
3.0.
2
"
openapi
:
"
3.0.
3
"
info
:
description
:
|
Interactive documentation for [Funkwhale](https://funkwhale.audio) API.
...
...
@@ -140,7 +140,6 @@ components:
description
:
This API uses OAuth 2 with the Authorization Code flow. You can register an app using the /oauth/apps/ endpoint.
flows
:
authorizationCode
:
# Swagger doesn't support relative URLs yet (cf https://github.com/swagger-api/swagger-ui/pull/5244)
authorizationUrl
:
/authorize
tokenUrl
:
/api/v1/oauth/token/
refreshUrl
:
/api/v1/oauth/token/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment