openapi_server

v0.8.0

OpenAPI library to build REST server applications

Build StatusTest StatusCoverage

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

The Ada server 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_server

For the server part, you must choose a servlet web container that will handle the requests. Two web server implementations are provided:

and you should run one of the following alr command depending on your choice:

alr with servletada_aws
alr with servletada_ews

Generation

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

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

Install

Globally install this crate:

alr install openapi_server

Add to your project:

alr with openapi_server

Crate Information

Authors

Maintainers

Maintainers (GitHub pseudo)

Release Date

last year

First Release

8/22/2022

License

Statistics

Dependencies: 5

Dependents: 0

Versions: 3

Dependencies

utilada^2.6.0
security^1.5.0
openapi^0.7.0