Skip to content
Discussion options

You must be logged in to vote

Importing from GItLab requires using the API URL instead of the RAW URL. You'll need the GitLab project ID for your repo and your instance API URL to do that.

On a public GitLab instance, you may end with something like: `https://gitlab.com/api/v4/projects/<project_id>/repository/files/api-contracts%2FUserRegistrationAPI-openapi-1.0.0.yml/raw?ref=main``

where the path to your OpenAPI file is URL encoded (see https://www.urlencoder.io/ if you need help) and the branch is specified as the ref query parameter.

Hope it helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment