107 lines
2.2 KiB
YAML
107 lines
2.2 KiB
YAML
definitions:
|
|
cmii.MessageBody:
|
|
properties:
|
|
appName:
|
|
type: string
|
|
deployStatus:
|
|
type: boolean
|
|
fromTag:
|
|
type: string
|
|
namespace:
|
|
type: string
|
|
replicas:
|
|
type: string
|
|
toTag:
|
|
type: string
|
|
type: object
|
|
pusher.Attachment:
|
|
properties:
|
|
expires:
|
|
type: integer
|
|
name:
|
|
type: string
|
|
size:
|
|
type: integer
|
|
type:
|
|
type: string
|
|
url:
|
|
type: string
|
|
type: object
|
|
pusher.Message:
|
|
properties:
|
|
attachment:
|
|
$ref: '#/definitions/pusher.Attachment'
|
|
click:
|
|
type: string
|
|
event:
|
|
type: string
|
|
icon:
|
|
type: string
|
|
id:
|
|
type: string
|
|
message:
|
|
type: string
|
|
priority:
|
|
type: integer
|
|
raw:
|
|
type: string
|
|
subscriptionID:
|
|
type: string
|
|
tags:
|
|
items:
|
|
type: string
|
|
type: array
|
|
time:
|
|
type: integer
|
|
title:
|
|
type: string
|
|
topic:
|
|
type: string
|
|
topicURL:
|
|
description: Additional fields
|
|
type: string
|
|
type: object
|
|
externalDocs:
|
|
description: OpenAPI
|
|
url: https://swagger.io/resources/open-api/
|
|
host: localhost:8080
|
|
info:
|
|
contact:
|
|
email: support@swagger.io
|
|
name: API Support
|
|
url: http://www.swagger.io/support
|
|
description: This is a sample server celler server.
|
|
license:
|
|
name: Apache 2.0
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
termsOfService: http://swagger.io/terms/
|
|
title: Swagger Example API
|
|
version: "1.0"
|
|
paths:
|
|
/cmii/update:
|
|
post:
|
|
consumes:
|
|
- application/json
|
|
description: response to cmii update notification
|
|
parameters:
|
|
- description: 请求体
|
|
in: body
|
|
name: body
|
|
required: true
|
|
schema:
|
|
$ref: '#/definitions/cmii.MessageBody'
|
|
produces:
|
|
- application/json
|
|
responses:
|
|
"200":
|
|
description: OK
|
|
schema:
|
|
$ref: '#/definitions/pusher.Message'
|
|
summary: ping example
|
|
tags:
|
|
- CmiiUpdate
|
|
securityDefinitions:
|
|
BasicAuth:
|
|
type: basic
|
|
swagger: "2.0"
|