| # [START swagger] |
| swagger: "2.0" |
| info: |
| description: "APIs for ChromeOS test analyzer." |
| title: "ChromeOS test analyzer" |
| version: "1.0.0" |
| host: {{endpoints_service}} |
| # [END swagger] |
| |
| basePath: "/" |
| consumes: |
| - "application/json" |
| produces: |
| - "application/json" |
| schemes: |
| - "https" |
| paths: |
| "/hello": |
| get: |
| summary: "Hello word." |
| operationId: "hello" |
| produces: |
| - "application/json" |
| responses: |
| 200: |
| description: "Hello to world." |
| schema: |
| $ref: "#/definitions/helloMessage" |
| "/internal_hello": |
| get: |
| description: "Private hello." |
| operationId: "internal_hello" |
| produces: |
| - "application/json" |
| responses: |
| 200: |
| description: "Hello to internal world" |
| schema: |
| $ref: "#/definitions/helloMessage" |
| security: |
| - api_key: [] |
| |
| definitions: |
| helloMessage: |
| properties: |
| message: |
| type: "string" |
| |
| # [START securityDef] |
| securityDefinitions: |
| # This section configures basic authentication with an API key. |
| api_key: |
| type: "apiKey" |
| name: "key" |
| in: "query" |
| # [END securityDef] |