diff --git a/kilo-server/src/main/resources/org/httprpc/kilo/api.html b/kilo-server/src/main/resources/org/httprpc/kilo/api.html index 321797bd8..f53c477ec 100644 --- a/kilo-server/src/main/resources/org/httprpc/kilo/api.html +++ b/kilo-server/src/main/resources/org/httprpc/kilo/api.html @@ -1,275 +1,297 @@ - {{service/path}} - - + :is(table, p) + :is(pre, h2) { + margin-top: 2rem; + } + section :is(table,p) { + margin-left: 1rem; + } + a { + color: var(--color-link); + } + .method { + padding: .25rem .5rem; + border-radius: .25em; + color: #FFF; + background: var(--color-neutral); + } + .method.GET { + background: var(--color-get); + } + .method.PUT { + background: var(--color-put); + } + .method.POST { + background: var(--color-post); + } + .method.DELETE { + background: var(--color-delete); + } + .label { + padding: .2em .4em; + border-radius: .25em; + font-size: .8rem; + text-transform: uppercase; + background: var(--color-neutral-light); + } + strong.deprecated { + text-transform: uppercase; + color: var(--color-neutral); + } + +
-

{{$services}}

-
    -
  1. {{$endpoints}} -
      +

      {{$services}}

      +
        +
      1. {{$endpoints}} +
          + +
        1. {{path}}
        2. + +
        +
      2. + + +
      3. {{$enumerations}} +
          + +
        1. {{name}}
        2. + +
        +
      4. + + + +
      5. {{$structures}} +
          + +
        1. {{name}}
        2. + +
        +
      6. + +
      +
+
+ +

{{.}}

+ + +
+

{{$endpoints}}

-
  • {{path}}
  • +
    +

    {{path}}

    + +
    {{method}}{{?produces}} : {{>type.html}}{{/produces}}{{?deprecated}} {{$deprecated}}{{/deprecated}}
    + +

    {{.}}

    + + + + + + + + + + + + + + + +
    {{$parameter}}{{$type}}{{$description}}
    {{name}}{{?type}}{{>type.html}}{{/type}}{{?required}} •{{/required}}{{description}}
    + + +
    - - +
    -
  • {{$enumerations}} -
      +
      +

      {{$enumerations}}

      -
    1. {{name}}
    2. +
      +

      {{name}}

      + +

      {{.}}

      + + + + + + + + + + + + +
      {{$name}}{{$description}}
      {{name}}{{description}}
      +
      -
    -
  • +
    -
  • {{$structures}} -
      +
      +

      {{$structures}}

      -
    1. {{name}}
    2. +
      +

      {{name}}{{?supertypes}} : {{#.[, ]}}{{>type.html}}{{/.}}{{/supertypes}}

      + +

      {{.}}

      + + + + + + + + + + + + + + +
      {{$property}}{{$type}}{{$description}}
      {{name}}{{?type}}{{>type.html}}{{/type}}{{?required}} •{{/required}}{{description}}
      +
      -
    -
  • + - - -
    - -

    {{.}}

    - - -
    -

    {{$endpoints}}

    - -
    -

    {{path}}

    - -
    {{method}}{{?produces}} : {{>type.html}}{{/produces}}{{?deprecated}} {{$deprecated}}{{/deprecated}}
    - -

    {{.}}

    - - - - - - - -
    {{$parameter}}{{$type}}{{$description}}
    {{name}}{{?type}}{{>type.html}}{{/type}}{{?required}} •{{/required}}{{description}}
    - - -
    - -
    - - -
    -

    {{$enumerations}}

    - -
    -

    {{name}}

    - -

    {{.}}

    - - - - - - -
    {{$name}}{{$description}}
    {{name}}{{description}}
    -
    - -
    - - - -
    -

    {{$structures}}

    - -
    -

    {{name}}{{?supertypes}} : {{#.[, ]}}{{>type.html}}{{/.}}{{/supertypes}}

    - -

    {{.}}

    - - - - - - -
    {{$property}}{{$type}}{{$description}}
    {{name}}{{?type}}{{>type.html}}{{/type}}{{?required}} •{{/required}}{{description}}
    -
    - -
    -
    diff --git a/kilo-server/src/main/resources/org/httprpc/kilo/index.html b/kilo-server/src/main/resources/org/httprpc/kilo/index.html index aec2fc9f0..7b79e1f89 100644 --- a/kilo-server/src/main/resources/org/httprpc/kilo/index.html +++ b/kilo-server/src/main/resources/org/httprpc/kilo/index.html @@ -1,51 +1,53 @@ - {{$title}} - + {{$title}} +
    -

    {{$services}}

    -
      - -
    1. {{?path}}{{.}}{{/path}}{{^path}}{{$default}}{{/path}}{{description}}
    2. - -
    +

    {{$services}}

    +
      + +
    1. + {{?path}}{{.}}{{/path}}{{^path}}{{$default}}{{/path}}{{description}} +
    2. + +
    \ No newline at end of file diff --git a/kilo-test/src/main/resources/org/httprpc/kilo/test/pets.html b/kilo-test/src/main/resources/org/httprpc/kilo/test/pets.html index 9a52e8485..4c9bbd7a3 100644 --- a/kilo-test/src/main/resources/org/httprpc/kilo/test/pets.html +++ b/kilo-test/src/main/resources/org/httprpc/kilo/test/pets.html @@ -1,3 +1,4 @@ + diff --git a/kilo-test/src/test/resources/org/httprpc/kilo/test/breakfast-menu.html b/kilo-test/src/test/resources/org/httprpc/kilo/test/breakfast-menu.html index 01695ff41..48f2934ab 100644 --- a/kilo-test/src/test/resources/org/httprpc/kilo/test/breakfast-menu.html +++ b/kilo-test/src/test/resources/org/httprpc/kilo/test/breakfast-menu.html @@ -1,12 +1,13 @@ + - - -
    - {{name}} - {{price}} -
    -
    -

    {{description}} ({{calories}} calories per serving)

    -
    - - + + +
    + {{name}} - {{price}} +
    +
    +

    {{description}} ({{calories}} calories per serving)

    +
    + + diff --git a/kilo-test/src/test/resources/org/httprpc/kilo/test/example.html b/kilo-test/src/test/resources/org/httprpc/kilo/test/example.html index fe95a9195..e586c6c7f 100644 --- a/kilo-test/src/test/resources/org/httprpc/kilo/test/example.html +++ b/kilo-test/src/test/resources/org/httprpc/kilo/test/example.html @@ -1,3 +1,4 @@ +

    {{a}}

    diff --git a/kilo-test/src/test/resources/org/httprpc/kilo/test/pets.html b/kilo-test/src/test/resources/org/httprpc/kilo/test/pets.html index c70ae0a62..f68eb59d1 100644 --- a/kilo-test/src/test/resources/org/httprpc/kilo/test/pets.html +++ b/kilo-test/src/test/resources/org/httprpc/kilo/test/pets.html @@ -1,3 +1,4 @@ +