summaryrefslogtreecommitdiffstats
path: root/catalog-be/templates/operation.hbs
diff options
context:
space:
mode:
authorDmitry Puzikov <d.puzikov2@partner.samsung.com>2020-03-03 10:18:41 +0100
committerYuli Shlosberg <ys9693@att.com>2020-03-16 20:14:52 +0000
commitcdca700bbc71af59acfe340b54d464f28206bb79 (patch)
tree6b5d42a082b098b8ce84f36b105301f4e17f5735 /catalog-be/templates/operation.hbs
parent71b9e84b987f2b1bb8981ddc4270bf15d5d5675b (diff)
Fix SDC-BE Swagger
General reorganisation of APIs rendering done. Fixed mix of swagger.v2 and new swagger.v3 conflicting annotatons. Moved to newer version of swagger-ui. Removed unused/inconsistent parts of pom.xml. Change-Id: Id1356b766caff6bf5817768c1a0f9b80541b85e8 Issue-ID: SDC-2718 Signed-off-by: Dmitry Puzikov <d.puzikov2@partner.samsung.com>
Diffstat (limited to 'catalog-be/templates/operation.hbs')
-rw-r--r--catalog-be/templates/operation.hbs73
1 files changed, 0 insertions, 73 deletions
diff --git a/catalog-be/templates/operation.hbs b/catalog-be/templates/operation.hbs
deleted file mode 100644
index 375d4f7701..0000000000
--- a/catalog-be/templates/operation.hbs
+++ /dev/null
@@ -1,73 +0,0 @@
-{{#deprecated}}-deprecated-{{/deprecated}}
-<a id="{{operationId}}">{{summary}}</a>
-
-{{description}}
-
-{{#if externalDocs.url}}{{externalDocs.description}}. [See external documents for more details]({{externalDocs.url}})
-{{/if}}
-
-{{#if security}}
-#### Security
-{{/if}}
-
-{{#security}}
-{{#each this}}
-* {{@key}}
-{{#this}} * {{this}}
-{{/this}}
-{{/each}}
-{{/security}}
-
-#### Request
-
-{{#if consumes}}
-**Content-Type: ** {{join consumes ", "}}{{/if}}
-
-##### Parameters
-{{#if parameters}}
-<table border="1">
- <tr>
- <th>Name</th>
- <th>Located in</th>
- <th>Required</th>
- <th>Description</th>
- <th>Default</th>
- <th>Schema</th>
- </tr>
-{{/if}}
-
-{{#parameters}}
-<tr>
- <th>{{name}}</th>
- <td>{{in}}</td>
- <td>{{#if required}}yes{{else}}no{{/if}}</td>
- <td>{{description}}{{#if pattern}} (**Pattern**: `{{pattern}}`){{/if}}</td>
- <td>{{#if defaultValue}}{{defaultValue}}{{else}} - {{/if}}</td>
-{{#ifeq in "body"}}
- <td>
- {{#ifeq schema.type "array"}}Array[<a href="{{schema.items.$ref}}">{{basename schema.items.$ref}}</a>]{{/ifeq}}
- {{#schema.$ref}}<a href="{{schema.$ref}}">{{basename schema.$ref}}</a> {{/schema.$ref}}
- </td>
-{{else}}
- {{#ifeq type "array"}}
- <td>Array[{{items.type}}] ({{collectionFormat}})</td>
- {{else}}
- <td>{{type}} {{#format}}({{format}}){{/format}}</td>
- {{/ifeq}}
-{{/ifeq}}
-</tr>
-{{/parameters}}
-{{#if parameters}}
-</table>
-{{/if}}
-
-
-#### Response
-
-{{#if produces}}**Content-Type: ** {{join produces ", "}}{{/if}}
-
-
-| Status Code | Reason | Response Model |
-|-------------|-------------|----------------|
-{{#each responses}}| {{@key}} | {{description}} | {{#schema.$ref}}<a href="{{schema.$ref}}">{{basename schema.$ref}}</a>{{/schema.$ref}}{{#ifeq schema.type "array"}}Array[<a href="{{schema.items.$ref}}">{{basename schema.items.$ref}}</a>]{{/ifeq}}{{^schema}} - {{/schema}}|
-{{/each}} \ No newline at end of file