Forum Discussion

AdaDaddy's avatar
AdaDaddy
New Contributor
2 years ago

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

  • chichepo's avatar
    chichepo
    Champion Level 3

    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 ğŸ˜‰

  • 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?