a127-magic-customized
Version:
Apigee 127 Swagger Loader and Middleware
96 lines (95 loc) • 2.15 kB
YAML
swagger: "2.0"
info:
version: "0.0.1"
title: "Skeleton App"
host: "localhost"
basePath: "/"
schemes:
- "http"
- "https"
consumes:
- "application/json"
produces:
- "application/json"
x-a127-config:
testString1: &testString value
testArray1:
- one
- two
testHash1:
one: one
two: two
testBoolean1: &testBoolean true
testNumber1: &testNumber 1
a127.account.password: &password "password"
x-volos-test:
testReference1:
testReference2:
testReference3:
testReference4:
testReference5:
x-volos-resources:
cache:
provider: "volos-cache-memory"
options:
name: "name"
ttl: 10000
quota:
provider: "volos-quota-memory"
options:
timeUnit: "minute"
interval: 1
allow: 2
oauth2:
provider: "volos-oauth-redis"
options:
encryptionKey: 'something'
validGrantTypes:
- "client_credentials"
- "authorization_code"
- "implicit_grant"
- "password"
passwordCheck: "passwordCheck"
paths:
note: "these will be placed in the paths section"
authorize: "/authorize"
token: "/accessToken"
invalidate: "/invalidate"
refresh: "/refresh"
definitions:
HelloWorldResponse:
required:
- "message"
properties:
message:
type: "string"
ErrorResponse:
required:
- "message"
properties:
message:
type: "string"
paths:
/hello:
x-swagger-router-controller: "hello_world"
x-volos-authorizations: {}
x-volos-apply: {}
get:
description: "Returns 'Hello' to the caller"
operationId: "hello"
produces:
- "application/json"
parameters:
-
name: "name"
in: "query"
description: "The name of the person to whom to say hello"
required: false
type: "string"
responses:
200:
description: "Success"
schema:
default:
description: "Error"
schema: