Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kotlin-server] --library=ktor (barebones implementation) #7412

Merged
merged 14 commits into from
Jan 27, 2018

Commits on Jan 15, 2018

  1. [tools] Make sed in new.sh more cross-platform

    The -r option passed to sed is a GNU sed option for extended regex
    evaluation. The -E option evaluates the same option, and is part of the
    POSIX standard, meaning this option is available in GNU sed as well as
    Apple's BSD variant.
    
    This commit removes the need for users to install gnu-sed on Mac.
    jimschubert committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    a5c8355 View commit details
    Browse the repository at this point in the history
  2. [ktor] Initial ktor (kotlin-server)

    This adds a very barebones implementation for a ktor server generator.
    
    This supports metrics and typed locations. All endpoins are stubbed to
    return HTTP/1.1 501 Not Implemented.
    jimschubert committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    c3e7d2f View commit details
    Browse the repository at this point in the history
  3. [ktor] Initial sample

    jimschubert committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    22b341a View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2018

  1. [ktor] Adding options for select feature installs

    Options available:
    
    * featureAutoHead
    * featureConditionalHeaders
    * featureHSTS
    * featureCORS
    * featureCompression
    jimschubert committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    5292ba0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6fdc61f View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2018

  1. Configuration menu
    Copy the full SHA
    90a949d View commit details
    Browse the repository at this point in the history
  2. Add basic support for oauth2 configurations

    ktor doesn't seem to explicitly accept oauth flow properties in its
    configuration object. This may be a blocker for 'implicit' flow
    definitions.
    jimschubert committed Jan 20, 2018
    Configuration menu
    Copy the full SHA
    0c442e9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c43c5ec View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2018

  1. [ktor] Route for apis with bodies, some cleanup

    ktor locations are only supported for routes with path/query parameters.
    Routes with body or file parameters must be declared with traditional
    route api.
    
    This commit also includes lambdas for simplifying processing in
    library-based server generator code. As an example, ktor requires
    lowercase http methods while spring (a potential future generator)
    would require an uppercase such as HttpMethod.GET. It doesn't make sense
    to modify these in the operations post-process method because that
    format wouldn't be universally desirable.
    
    The lambdas included in the KotlinServerCodegen:
    * lowercase: converts all text to lowercase
    * uppercase: converts all text to UPPERCASE
    * titlecase: converts words (with configurable delim) to Title Case
    * indented|indented_8|indented_12|indented_16: these helpers apply the
      same desired indent to all lines of an included fragment's text.
    jimschubert committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    30c8c87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4257953 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into ktor-server-initial

    * master: (133 commits)
      add a link to ebook (polish version)
      Add R namespace file (swagger-api#7467)
      Add Spring Petstore samples (async, java8-localdatetime) to CircleCI (swagger-api#7468)
      Revised core team members
      Ada code generator corrected: "=>" instead of "->". Fixes swagger-api#7450 (swagger-api#7456)
      Fixes issue swagger-api#7177 (SpringCodeGen dateLibrary "java8-localdatetime" option is ignored). (swagger-api#7178)
      Issue-7438 Fix that prevents generating interfaces when interfaceOnly is false. (swagger-api#7439)
      swagger-api#7093 - Add maven wrapper (swagger-api#7356)
      [csharp] Support arrays of arrays for properties and models (swagger-api#7400)
      [csharp] Fix ToJson to work with composition and polymorphism (swagger-api#7399)
      [csharp] Reference this.Configuration in client api template (swagger-api#7394)
      [JAX-RS][Spec] Removes throws Exception. (swagger-api#7437)
      Use supportsES6 flag in ts compilation for language typescript-angular (swagger-api#7408)
      Fix 7457: [Ada] wrong order for generated structures in *-models.ads (swagger-api#7462)
      Fix 7459: [Ada] wrong JSON in POST operations (swagger-api#7460)
      [erlang-client] Erlang request utils (swagger-api#7257)
      reenable pushing snapshot to maven repo
      Create CODE_OF_CONDUCT.md
      comment out update to docker image
      deleted unnecessary notes (swagger-api#7454)
      ...
    jimschubert committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    c8ef52c View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2018

  1. Update kotlin-server-petstore.bat

    Change `kotlin` to `kotlin-server`
    jimschubert committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    806a0a6 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2018

  1. Configuration menu
    Copy the full SHA
    264400f View commit details
    Browse the repository at this point in the history
  2. Merge branch 'ktor-server-initial' of github.com:jimschubert/swagger-…

    …codegen into ktor-server-initial
    
    * 'ktor-server-initial' of github.com:jimschubert/swagger-codegen:
      Update kotlin-server-petstore.bat
    jimschubert committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    8c73a03 View commit details
    Browse the repository at this point in the history