openapi-generator/samples/client/petstore
Stephane Carrez 362625bfa9 [Ada] Add Ada support for server code generator #6680 (#7256)
* Add Ada client petstore samples
- Add script to generate Ada client support with swagger-codegen
- Add files to build the Ada sample
- Add main program to use the generated client samples API
  and connect to the server to perform some operations

* Add some description for the samples

* Update the documentation to explain how to build, how to use the generated Ada client code

* Add server support for path parameters
- Update postProcessOperations to scan each path parameter and emit a x-path-index
  vendor attribute to tell the index of the path parameter

* Add and fix Ada server code package declaration
- fix declaration of operations
- generate a generic package that must be instantiated with the target server implementation
  and which provides the skeleton (deserialization and serialization of data)

* Implement the Ada server side operations
- extract body, query parameters, path parameters
- serialize the result
- register operations to the server according to the path/routes

* Update the code generation to generate server Ada implementation code

* Improvement of Ada server support: generate the swagger.json template file

* Define toModelName operation to the creation of a model identifier

* Add support for server permission generation
- collect the security scopes in postProcessAuthMethod() method and make sure
  these scopes have unique identifiers.  Some scopes correspond to URLs
  but others correspond to pseudo identifiers.

* Use the #lambdaAdaComment filter to indent correctly a multi-line description

* Fix model generation to support arrays

* Update the generated GNAT project file

* Refactoring and improvement of server code generation
- Change the server generated code to pass a Context_Type object
  to allow the server implementation to get/set headers in the request/response
  and control what is put in some responses
- Generate the security permissions based on the scopes that have been collected

* Server code generation improvement
- Fix generation of GNAT project
- Generate the intermediate Ada packages if necessary
- Generate the server main

* Ada server main template

* Ada server code improvement
- Add support to generate server permission verification
- Fix the GNAT project definition
- Templates for Ada intermediate packages

* Skeleton for the server side implementation

* Generate an empty Ada server implementation

* Templates for the Ada server implementation

* Add a README.md file and a GNAT config.gpr file

* New templates to document the generated Ada server

* Add server configuration file for the Ada server

* Fix the log message in the Ada server to report the correct URI to connect to

* Generate the Ada server configuration file

* Improvement of Ada code model to support nullable types

* Update the Ada server templates

* Refactor the Ada code generator
- separate the Ada client and Ada server code generators
- register the Ada server code generator under the name 'ada-server'
  keep 'ada' for the client Ada code generator
- moved the common Ada code operation supports to the AbstractAdaCodegen

* Improvement and cleanup of Ada client and server code
- new template for the client main program
- fix the GNAT project template for client or server programs
- remove unused options to better use the --model-package option

* Fix the GNAT project file name to use a lower case name
Fix the default GNAT config
Fix the headers of intermediate Ada package files

* Regenerate the model and client Ada files

* Update the Ada client sample to take into account the Nullable types

* Regenerate some files with Ada Swagger Codegen

* Ignore generation of petstore.gpr
2018-01-07 18:44:20 +08:00
..
ada [Ada] Add Ada support for server code generator #6680 (#7256) 2018-01-07 18:44:20 +08:00
akka-scala [Akka-Scala] This is a fix to a bug introduced by this PR #7172 (#7228) 2017-12-21 10:56:36 +08:00
android [ANDROID][volley] Handle UnsupportedEncodingException in invokeAPI (#6436) 2017-09-07 18:12:09 +08:00
apex Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
async-scala Merge remote-tracking branch 'origin/master' into 2.3.0 2017-06-15 17:14:39 +08:00
bash #7047 - Added Bash syntax check to tests (#7155) 2017-12-13 11:14:07 +08:00
clojure update clojure petstore cient 2017-05-27 00:33:49 +08:00
cpprest [CppRest] Add Object and fix modelbase includes (#6905) 2017-11-22 12:19:13 +08:00
csharp fix net35 with JsonSubTypes (#7043) 2017-12-22 00:31:44 +08:00
csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient CsharpDotNet2Client - Use clientPackage in additionalProperties (#6581) 2017-10-03 16:58:27 +08:00
dart Added support for enums in Dart. (#6516) 2017-10-16 21:28:21 +08:00
eiffel Swagger eiffel:fix (#6674) 2017-10-16 11:02:19 +08:00
elixir [Elixir Client]Improve elixir client typings (#6821) 2017-10-29 00:46:07 +08:00
elm Add Elm language - BETA (#6947) 2017-12-20 22:26:46 +08:00
erlang-client [Erlang] erlang client: properly handle optional parameters (#7042) 2017-11-27 16:11:14 +08:00
flash Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
go Generate swagger yaml for go client (#7281) 2018-01-07 11:37:40 +08:00
groovy Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
haskell-http-client bump stack resolver to lts-10.0 (#7221) 2017-12-20 21:55:23 +08:00
java update swagger parser, core version the latest (#7163) 2017-12-13 18:08:26 +08:00
javascript [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
javascript-closure-angular Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
javascript-es6 [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
javascript-promise [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
javascript-promise-es6 [Javascript] Set ES5 as default (#7239) 2017-12-22 00:08:30 +08:00
jaxrs-cxf updated jackson-version (#5943) 2017-06-29 10:56:12 +08:00
jaxrs-cxf-client Issue 6694 2.3.0 (#6845) 2017-11-10 15:32:05 +08:00
jmeter Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
kotlin Kotlin sanitize model names 6864 (#6874) 2017-11-04 23:23:08 +08:00
lua [Lua] Add new Lua client generator (#6252) 2017-08-11 01:41:29 +08:00
objc Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
perl Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
php update php petstore samples 2017-12-09 17:32:45 +08:00
powershell remove old petstore powershell sample 2017-08-07 15:41:30 +08:00
python update swagger parser, core version the latest (#7163) 2017-12-13 18:08:26 +08:00
python-asyncio Binary mode for file deserialization in python (#6936) 2017-11-13 12:50:10 +08:00
python-tornado [python/tornado] ssl improvements (#7061) 2017-11-28 10:06:29 +08:00
qt5cpp remove spaces, empty lines from qt5cpp client (#6956) 2017-11-14 23:28:06 +08:00
R Fix some bugs for the R client (#6535) 2017-09-27 00:06:53 +08:00
r_test fix r body parameter null issue (#6786) 2017-10-24 10:45:25 +08:00
ruby update ruby petstore samples 2017-12-07 23:55:51 +08:00
rust Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
rust2/examples/server_lib [rust-server] Plaintext support; encode params (#7082) 2017-12-08 18:42:14 +08:00
scala [Scala] [ISSUE-7085] Scala template code format refactor (#7086) 2017-12-08 00:20:19 +08:00
scalaz add scalaz to cirleci 2017-10-16 22:23:26 +08:00
spring-cloud update spring petstore samples 2017-12-15 00:02:43 +08:00
spring-stubs update spring petstore samples 2017-12-15 00:02:43 +08:00
swift update swift petstore samples 2017-11-28 23:44:49 +08:00
swift3 [Swift4]Update templates for swift 4 (#6921) 2017-11-21 11:33:52 +08:00
swift4 Update samples using latest codegen and templates (#7071) 2017-11-29 14:49:45 +08:00
swift-promisekit Spelling fixes 2016-08-27 02:34:33 +03:00
tizen Spelling fixes (#7142) 2017-12-10 10:48:30 +08:00
typescript-angular-v2 Fix issue #7262 with the parameter name in the path. The problem was that camelCase naming was forced only in this part of the code when everywhere else it is configurable. (#7313) 2018-01-07 10:33:46 +08:00
typescript-angular-v4/npm Fix issue #7262 with the parameter name in the path. The problem was that camelCase naming was forced only in this part of the code when everywhere else it is configurable. (#7313) 2018-01-07 10:33:46 +08:00
typescript-angular-v4.3/npm Fix issue #7262 with the parameter name in the path. The problem was that camelCase naming was forced only in this part of the code when everywhere else it is configurable. (#7313) 2018-01-07 10:33:46 +08:00
typescript-angularjs Fix wrong params indentation (#7136) 2017-12-09 17:22:24 +08:00
typescript-aurelia/default [Typescript All] Prevent usage of reserved keyword for model fields (#7112) 2017-12-14 12:47:02 +08:00
typescript-fetch [TypeScript-Fetch] Support for non-JSON body params (#6994) 2017-12-19 17:20:16 +08:00
typescript-jquery [Typescript jQuery] Add README.md (#7113) 2017-12-06 10:34:29 +08:00
typescript-node [Typescript All] Prevent usage of reserved keyword for model fields (#7112) 2017-12-14 12:47:02 +08:00