Skip to content

Commit

Permalink
Merge pull request #288 from little-cui/master
Browse files Browse the repository at this point in the history
Update swagger.
  • Loading branch information
asifdxtreme committed Feb 23, 2018
2 parents 833b19c + 2c48211 commit 52ba878
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 33 deletions.
24 changes: 12 additions & 12 deletions server/core/swagger/v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -134,7 +134,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
responses:
200:
Expand Down Expand Up @@ -293,7 +293,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -441,7 +441,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -562,7 +562,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -710,7 +710,7 @@ paths:
- name: withSchema
in: query
description: 是否查询schema,0只显示summary,1同时显示schema。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -810,7 +810,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- dependency
Expand Down Expand Up @@ -846,7 +846,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- dependency
Expand Down Expand Up @@ -912,7 +912,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- schemas
Expand Down Expand Up @@ -1002,7 +1002,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- instances
Expand Down Expand Up @@ -1089,7 +1089,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- instances
Expand Down Expand Up @@ -1291,7 +1291,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- instances
Expand Down
79 changes: 58 additions & 21 deletions server/core/swagger/v4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand All @@ -117,6 +117,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand Down Expand Up @@ -158,7 +162,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
responses:
200:
Expand All @@ -183,6 +187,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: service
in: body
description: 创建微服务请求结构体。
Expand All @@ -209,6 +217,10 @@ paths:
批量删除指定的微服务定义及其相关信息,同时注销其所有实例信息。
operationId: deleteServices
parameters:
- name: project
in: path
required: true
type: string
- name: serviceIds
in: body
description: 批量删除服务的服务ID列表
Expand Down Expand Up @@ -315,6 +327,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand All @@ -323,7 +339,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -394,6 +410,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand Down Expand Up @@ -469,6 +489,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand All @@ -477,7 +501,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -551,6 +575,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand Down Expand Up @@ -604,7 +632,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -635,6 +663,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand Down Expand Up @@ -675,6 +707,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand Down Expand Up @@ -759,7 +795,7 @@ paths:
- name: withSchema
in: query
description: 是否查询schema,0只显示summary,1同时显示schema。
type: string
type: integer
default: 0
tags:
- microservices
Expand Down Expand Up @@ -868,7 +904,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- dependency
Expand Down Expand Up @@ -907,7 +943,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- dependency
Expand Down Expand Up @@ -976,7 +1012,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- schemas
Expand Down Expand Up @@ -1048,6 +1084,10 @@ paths:
required: true
type: string
default: default
- name: project
in: path
required: true
type: string
- name: X-ConsumerId
in: header
description: 微服务消费者的微服务唯一标识。
Expand All @@ -1069,7 +1109,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- instances
Expand Down Expand Up @@ -1138,6 +1178,10 @@ paths:
description: 微服务消费者的微服务唯一标识。
required: true
type: string
- name: project
in: path
required: true
type: string
- name: serviceId
in: path
description: 微服务唯一标识。
Expand All @@ -1159,7 +1203,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- instances
Expand Down Expand Up @@ -1376,7 +1420,7 @@ paths:
- name: noCache
in: query
description: 是否强一致性,1 是、0 否。
type: string
type: integer
default: 0
tags:
- instances
Expand Down Expand Up @@ -2124,13 +2168,11 @@ definitions:
type: object
properties:
service:
description: 单个服务信息
$ref: "#/definitions/ServiceDetail"
ServiceDetail:
type: object
properties:
microservice:
description: 静态服务信息
$ref: "#/definitions/MicroService"
instances:
type: array
Expand Down Expand Up @@ -2171,11 +2213,10 @@ definitions:
type: object
properties:
nodes:
description: 图里面的节点信息
$ref: "#/definitions/Nodes"
Nodes:
type: array
description: 节点信息
description: 图里面的节点信息
items:
$ref: "#/definitions/Node"
Node:
Expand Down Expand Up @@ -2216,20 +2257,16 @@ definitions:
items:
$ref: "#/definitions/ServiceDetail"
statistics:
description: 静态信息,包含服务个数,实例个数,有实例的服务个数,应用个数等
type: object
$ref: "#/definitions/Statistics"
Statistics:
type: object
description: 静态信息,包含服务个数,实例个数,有实例的服务个数,应用个数等
properties:
services:
description: 微服务个数
$ref: "#/definitions/StService"
instances:
description: 实例个数
$ref: "#/definitions/StInstance"
apps:
description: 应用个数
$ref: "#/definitions/StApp"
StService:
type: object
Expand Down

0 comments on commit 52ba878

Please sign in to comment.