openapi-generator/samples/server/petstore
Benjamin Gill 1a831f73f3 [rust-server] Plaintext support; encode params (#7082)
* MMORCH-428: Export the Authorization struct

This is needed so that code can check that the version of Authorization
in the auto-generated code is the same as the version it is using. If
the versions are not exactly the same then the lookup into the TypeMap
will not work.

* Add Rust as a supported language for client and server.

Clarify that there are two Rust client implementations, and one Rust server implementation.

* Percent-encode path and query parameters in client URLs
Fixes #122

Also don't include a question mark at the end of the path when there are no query paramters.
Fixes #121

* Rust2 client: add --host and --port parameters to example client.

Allows the example command-line client to override the default host and port.

* Extract default host and port from Swagger file.

* Derive 'Eq' and 'Ord' on enums

* Rust2: improve server code structure.

    server.rs (main.rs) - main entry point for binary; starts the web server and points it at the server code within the library.
    server_lib/mod.rs (lib.rs) - root of library; creates the server.
    server_lib/server.rs (server.rs) - actual server code

The old server_lib/mod.rs is now server_lib/server.rs; server_lib/mod.rs is new.

This structure is easy to map onto a server implementation; unfortunately we can't get it exactly right here because of the limitations of cargo's examples/ folder.

* Rust2: Explain fully how to use the example code in your project.

* Added plaintext support

* Linting

* MGJ Markups
2017-12-08 18:42:14 +08:00
..
aspnetcore [AspNetCore SERVER] Added support for ASP.NET Core 2.0 (#7114) 2017-12-06 11:02:13 +08:00
erlang-server Erlang-server: fix dialyzer; fix min and max checks (#6752) 2017-10-25 10:57:53 +08:00
finch [Scala] [ISSUE-7085] Scala template code format refactor (#7086) 2017-12-08 00:20:19 +08:00
flaskConnexion use python client toOperationId logic (#7035) 2017-11-23 17:41:50 +08:00
flaskConnexion-python2 use python client toOperationId logic (#7035) 2017-11-23 17:41:50 +08:00
go-api-server Merge remote-tracking branch 'origin/master' into 2.3.0 2017-06-15 17:14:39 +08:00
haskell-servant Map ByteArray to Text for haskell codegen (#6402) 2017-08-31 10:19:42 +08:00
java-inflector update petstore samples 2017-11-27 17:16:44 +08:00
java-msf4j fix msf4j return type annotation (#7110) 2017-12-05 17:23:04 +08:00
java-play-framework [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
java-play-framework-controller-only [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
java-play-framework-fake-endpoints [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
java-play-framework-no-bean-validation [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
java-play-framework-no-exception-handling [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
java-play-framework-no-interface [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
java-play-framework-no-swagger-ui Fix: Resolve problem with UUID class not found if there is almost one parameter with format as uuid (#6617) 2017-11-22 16:54:11 +08:00
java-play-framework-no-wrap-calls [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
java-vertx [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
jaxrs update java server samples 2017-10-09 23:00:44 +08:00
jaxrs-cxf Pass optional as null (#7066) 2017-12-04 22:18:32 +08:00
jaxrs-cxf-annotated-base-path Issue 6694 2.3.0 (#6845) 2017-11-10 15:32:05 +08:00
jaxrs-cxf-cdi update java server samples 2017-10-09 23:00:44 +08:00
jaxrs-cxf-non-spring-app Issue 6694 2.3.0 (#6845) 2017-11-10 15:32:05 +08:00
jaxrs-resteasy update java server samples 2017-10-09 23:00:44 +08:00
jaxrs-spec @JsonProperty annotation for jaxrs-spec server model classes (#6911) (#6916) 2017-11-09 21:46:26 +08:00
jaxrs-spec-interface @JsonProperty annotation for jaxrs-spec server model classes (#6911) (#6916) 2017-11-09 21:46:26 +08:00
lumen check for dot in path and throw exception if found (#6986) 2017-11-17 20:18:06 +08:00
nancyfx [NancyFx] Fix for issue #7024, date field mapped to ZonedDateTime (#7025) 2017-11-27 16:46:09 +08:00
nancyfx-async [NancyFx] Fix for issue #7024, date field mapped to ZonedDateTime (#7025) 2017-11-27 16:46:09 +08:00
nodejs Merge remote-tracking branch 'origin/master' into 2.3.0 2017-06-15 17:14:39 +08:00
nodejs-google-cloud-functions Merge remote-tracking branch 'origin/master' into 2.3.0 2017-06-15 17:14:39 +08:00
php-silex rename silex-PHP to php-silex (#6612) 2017-10-03 23:46:56 +08:00
php-symfony [PHP][Symfony] Further enhancements (#7001) 2017-11-27 16:25:50 +08:00
pistache-server Pistache server (#6189) 2017-07-27 14:56:56 +08:00
rails5 Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
restbed - Updated cpp generators to name boolean getter functions with an is at the beginning (ex. isActive) (#6880) 2017-11-04 22:04:38 +08:00
rust-server [rust-server] Plaintext support; encode params (#7082) 2017-12-08 18:42:14 +08:00
scala-lagom-server [Scala][Lagom] rename generator from scala-lagom to scala-lagom-server (#7014) 2017-11-21 23:24:02 +08:00
scalatra [Scala][Lagom] minor enhancements (#7011) 2017-11-21 17:34:09 +08:00
sinatra Update samples for several language (just whitespace changes, reordering, VERSION) (#5828) 2017-06-14 01:17:31 +08:00
slim [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
spring-mvc update spring petstore sample 2017-11-27 22:12:46 +08:00
spring-mvc-j8-async update spring petstore sample 2017-11-27 22:12:46 +08:00
springboot update spring petstore sample 2017-11-27 22:12:46 +08:00
springboot-beanvalidation update spring petstore sample 2017-11-27 22:12:46 +08:00
springboot-delegate update spring petstore sample 2017-11-27 22:12:46 +08:00
springboot-delegate-j8 update spring petstore sample 2017-11-27 22:12:46 +08:00
springboot-implicitHeaders update spring petstore sample 2017-11-27 22:12:46 +08:00
springboot-useoptional update spring petstore sample 2017-11-27 22:12:46 +08:00
undertow [Java][Spring][Server] Issue #4680 (#6890) 2017-11-27 18:30:39 +08:00
ze-ph Zend Expressive fix and upgrade to version 2 (#6461) 2017-09-23 15:31:20 +08:00