Ask a Question

How do I generate an Ada language server stub?

AdaDaddy
New Contributor

How do I generate an Ada language server stub?

I saw on your GitHub that the Ada language is supported by the Codegen tool. How do I choose Ada to generate a server code stub?

3 REPLIES 3
chichepo
Contributor

@AdaDaddy 
As far as I know, SwaggerHub does not include ADA in its language support for Client/Server generation (refer to this page for further details).

In my company, they are using codegen-cli.
I am not sure about the exact syntax and I never tried it myself but I found these examples (swagger 2.0):
Client generation: 

 

java -jar swagger-codegen-cli.jar generate -l ada -i CalcAndSearch.yaml \
-DprojectName=SeriesLaunch --model-package PackagingOne

 

 

Server generation:

 

java -jar swagger-codegen-cli.jar generate -l ada-north-srv -i CalcAndSearch.yaml \
 -DprojectName=SeriesLaunch --model-package PackagingOne

 

 

We will be happy to get this option from SwaggerHub as well πŸ˜‰

Crosslandsa
New Member

I'm especially stayed aware of the article and I will get many benefits from it. Subsequently, thank you for sharing it.


@AdaDaddy wrote:

I saw on your GitHub that the Ada language is supported by the Codegen tool. How do I choose Ada to generate a server code stub?




AdaDaddy
New Contributor

I have found https://github.com/stcarrez/swagger-ada which contains a tutorial at https://github.com/stcarrez/swagger-ada/blob/master/docs/Tutorial.md .

 

I am about to try this method.

cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β