Openapi

Website:

https://gitlab.com/stcarrez/openapi-ada

Author:
  • Stephane.Carrez@gmail.com
Maintainer:
  • Stephane.Carrez@gmail.com
License:

Apache-2.0

Version:

0.7.0

Alire CI:

Dependencies: Dependents: Badge:

OpenAPI library to build REST client applications

#rest #web #api #openapi

Build Status Test Status Coverage

OpenAPI Generator is a code generator that supports generation of API client libraries, server stubs and documentation automatically given an OpenAPI Spec.

The Ada client support has been integrated in OpenAPI Generator.

The OpenAPI Ada library is a small support library for the Ada code generator provided by OpenAPI Generator. The library provides support to serialize the data, make HTTP requests and support the OpenAPI Spec specific operations or types.

Alire setup

alr with openapi

For the HTTP connection, you can either use AWS or CURL and run one of the following commands:

alr with utilada_curl
alr with utilada_aws

Generation

Example of client generation with OpenAPI file my-api.yaml and use of CURL support:

  alr exec -- openapi-generate-client -i my-api.yaml --additional-properties projectName=MyProject --additional-properties openApiName=OpenAPI --additional-properties httpSupport=Curl --model-package MyProject.MyModule -o .