Skip to main content

REST

To call REST APIs, using importers is optional. However, using an importer has a lot of advantages. For example, request contents are generated automatically.

Import via OpenAPI URL

To import an OpenAPI definition, the simplest way is to enter the URL of the OpenAPI specification. Both YAML and JSON formats are allowed.

Import via OpenAPI file

Should you have an OpenAPI file locally, simply choose the "REST OpenAPI file" importer type and select your file.

Kreya only stores the path to the OpenAPI file. If you intend to share your Kreya project, make sure that the path stays correct. Kreya uses relative paths by default, but you may also use system environment variables like %APPDATA% or ${GOPATH}. They will work on any OS, regardless of the format.