github.com/apremalal/vamps-core@v1.0.1-0.20161221121535-d430b56ec174/server/webapps/apieditor/templates/operation.html (about)

     1  <li class="{{operationName | lowercase}} operation" scroll-into-view-when="isInFocus(['paths', pathName, operationName])"><header ng-click="
     2        operation.$folded = !operation.$folded;
     3        foldEditor(['paths', pathName, operationName], operation.$folded)
     4      "><a class="focus-editor" ng-click="focusEdit($event, ['paths', pathName, operationName])" tooltip-placement="left" tooltip="Jump to YAML" tooltip-trigger="mouseenter"></a><div class="http-method" class="toggleOperation">{{operationName | uppercase}} {{pathName}}</div><div class="deprecated" ng-if="operation.deprecated">Deprecated</div></header><div class="content" collapse-when="operation.$folded"><div class="tags"><span class="tag tag-color-{{tagIndexFor(tag)}}" ng-repeat="tag in operation.tags track by $index">{{tag}}</span></div><section class="summary" ng-if="operation.summary"><h4>Summary</h4><p>{{operation.summary}}</section><section class="description" ng-if="operation.description"><h4>Description</h4><div marked="operation.description"></div></section><section class="parameters" ng-if="getParameters().length"><h4>Parameters</h4><div><table class="params"><thead><tr><th>Name<th>Located in<th>Description<th>Required<th>Schema<tbody><tr ng-repeat="parameter in getParameters() track by $index"><td><a ng-click="focusEdit($event, [
     5                        'paths',
     6                        pathName,
     7                        operationName,
     8                        'parameters',
     9                        $index
    10                      ])" tooltip-placement="top" tooltip="Jump to YAML" tooltip-trigger="mouseenter"><span class="mono">{{parameter.name}}</span></a><td>{{parameter.in}}<td marked="parameter.description"><td>{{parameter.required ? 'Yes' : 'No'}}<td><schema-model schema="parameter.schema"></schema-model></table></div></section><section class="responses" ng-if="operation"><h4>Responses</h4><div><table class="respns"><thead><tr><th>Code<th>Description<th ng-if="hasAResponseWithHeaders(operation.responses)">Headers<th ng-if="hasAResponseWithSchema(operation.responses)">Schema<th ng-if="hasAResponseWithExamples(operation.responses)">Examples<tbody><tr ng-repeat="(responseCode, response) in operation.responses"><td><a ng-click="focusEdit($event, [
    11                      'paths',
    12                      pathName,
    13                      operationName,
    14                      'responses',
    15                      responseCode])" tooltip-placement="top" tooltip="Jump to YAML" tooltip-trigger="mouseenter"><span class="resp-code {{responseCodeClassFor(responseCode)}}">{{responseCode}}</span></a><td marked="response.description"><td ng-if="hasAResponseWithHeaders(operation.responses)"><table ng-if="response.headers" class="respnse-headers"><thead><tr><th>Name<th>Description<th>Type<th>Details<tbody><tr ng-repeat="(headerName, header) in response.headers"><td>{{headerName}}<td>{{header.description}}<td><json-formatter json="header.type"></json-formatter><td><json-formatter json="header"></json-formatter></table><td ng-if="hasAResponseWithSchema(operation.responses)"><schema-model ng-if="response.schema" schema="response.schema"></schema-model><td ng-if="hasAResponseWithExamples(operation.responses)"><table class="examples"><tr ng-repeat="(exampleMimeType, example) in response.examples"><td>{{exampleMimeType}}<td><json-formatter json="example" open></json-formatter></table></table></div></section><section class="security" ng-if="operation.security && operation.security.length"><h4>Security</h4><table class="security"><thead><tr><th>Security Schema<th>Scopes<tbody><tr ng-repeat="security in operation.security track by $index"><td ng-repeat="(securityName, securityValues) in security">{{securityName}}<td ng-repeat="(securityName, securityValues) in security"><strong class="security-value" ng-repeat="value in securityValues track by $index">{{value}}</strong></table></section><section class="try-operation" ng-if="enableTryIt"><button class="border-only try-it" ng-class="{trying: isTryOpen}" ng-click="toggleTry()" ng-if="!isTryOpen" track-event="try-operation">Try this operation</button> <button class="border-only red close-try" ng-class="{'is-open': isTryOpen}" ng-click="toggleTry()" ng-if="isTryOpen">Close</button><div ng-include="'templates/try-operation.html'" ng-if="isTryOpen"></div></section></div>