Skip to content

How to set baseUrl for the api requests?  #8

@ericvdberge

Description

@ericvdberge

Hi, I have a C# Api that is using swagger with the provided OpenApi specification.
In my vue frontend, I am using this package in the frontend using yarn openapi --file http://localhost:53461/swagger/v1/swagger.json.

First time working with it and seems really nice! But, my OpenApi specification contains relative paths like / or '/products'. Is there a way to specify a base url so it uses http://localhost:53461/products instead of the relative urls in the request method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions