-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger-WP3.yaml
160 lines (160 loc) · 3.87 KB
/
swagger-WP3.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
swagger: '2.0'
info:
title: SUPERSEDE ReleasePlanner API to WP3
description: This API defines the operation that the Replan Controller component exposes to the WP3 components.
version: "1.2.0"
# the domain of the service
host: localhost
# array of all schemes that your API supports
schemes:
- https
# will be prefixed to all paths
basePath: /api/wp3/v1
produces:
- application/json
paths:
/projects/{projectId}/features:
post:
summary: Add new features to project
description: |
This operation allows sending new features to the Replan Controller component.
operationId: sendFeatures
parameters:
- name: projectId
in: path
type: string
description: ID of the project (e.g. "1" or "siemens")
required: true
- name: body
in: body
description: An array of Features
required: true
schema:
$ref: '#/definitions/Payload'
responses:
200:
description: Success
schema:
type: object
properties:
message:
type: string
400:
description: Bad request
schema:
$ref: '#/definitions/Error'
404:
description: Project not found
definitions:
SoftDependency:
type: object
required:
- id
- type
properties:
id:
type: integer
description: Id of the feature with which there is a dependency
type:
type: string
enum: [functional, cost, value]
value:
type: number
Property:
type: object
required:
- key
- value
- format
properties:
key:
type: string
description: name of the property. Currently, only 'deadline' and 'description' are supported.
value:
type: string
description: value of the property as string
format:
type: string
enum: [string, integer, number, date-time]
description: intended type of the value
Constraint:
type: object
required:
- variable
- operator
- value
properties:
variable:
type: string
operator:
type: string
description: <, >, and the like
value:
type: number
FeatureForWP3:
type: object
required:
- id
- priority
properties:
id:
type: integer
description: Unique WP3 identifier representing a feature
name:
type: string
description: Display name of feature.
effort:
type: number
description: Effort to implement the feature.
priority:
type: integer
enum: [ 1, 2, 3, 4, 5 ]
description: It comes from Wp3.3
properties:
type: array
description: array of properties
items:
$ref: '#/definitions/Property'
hard_dependencies:
type: array
description: array of Feature ids
items:
type: integer
description: Feature id
soft_dependencies:
type: array
description: array of Soft-dependencies
items:
$ref: '#/definitions/SoftDependency'
arguments:
type: string
description: Some explanatory/justification info
Payload:
type: object
required:
- evaluation_time
- features
properties:
evaluation_time:
type: string
format: date-time
features:
type: array
description: array of features
items:
$ref: '#/definitions/FeatureForWP3'
constraints:
type: array
description: array of constraints
items:
$ref: '#/definitions/Constraint'
Error:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
fields:
type: string