-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathswagger.yaml
156 lines (156 loc) · 3.28 KB
/
swagger.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
swagger: '2.0'
info:
title: SUPERSEDE ReleasePlanner. Wrapper of Valentin's Implementation
version: 1.2.0
host: localhost
schemes:
- http
basePath: /api/v1
produces:
- application/json
paths:
/replan:
post:
summary: Generates a Planning Solution for a given Next Release Problem
operationId: replan
parameters:
- name: body
in: body
required: true
schema:
$ref: '#/definitions/NextReleaseProblem'
responses:
'200':
description: Success
schema:
$ref: '#/definitions/PlanningSolution'
'400':
description: Bad Request
'422':
description: Unprocessable Entity
schema:
$ref: '#/definitions/Error'
definitions:
Skill:
type: object
properties:
name:
type: string
Priority:
type: object
properties:
level:
type: integer
score:
type: integer
Feature:
type: object
properties:
name:
type: string
duration:
type: number
format: double
priority:
$ref: '#/definitions/Priority'
required_skills:
type: array
items:
$ref: '#/definitions/Skill'
depends_on:
type: array
description: array of features
items:
$ref: '#/definitions/Feature'
Resource:
type: object
properties:
name:
type: string
availability:
type: number
format: double
skills:
type: array
items:
$ref: '#/definitions/Skill'
AlgorithmParameters:
type: object
properties:
algorithmType:
type: string
enum:
- NSGA-II
- MOCell
- SPEA2
- PESA2
- SMSEMOA
crossoverProbability:
type: number
format: double
rateOfNotRandomSolution:
type: number
format: double
numberOfIterations:
type: integer
populationSize:
type: integer
NextReleaseProblem:
type: object
required:
- nbWeeks
- hoursPerWeek
- features
- resources
properties:
nbWeeks:
type: integer
hoursPerWeek:
type: number
format: double
features:
type: array
items:
$ref: '#/definitions/Feature'
resources:
type: array
items:
$ref: '#/definitions/Resource'
currentPlan:
$ref: '#/definitions/PlanningSolution'
algorithmParameters:
$ref: '#/definitions/AlgorithmParameters'
PlannedFeature:
type: object
properties:
beginHour:
type: number
format: double
endHour:
type: number
format: double
frozen:
type: boolean
default: false
description: if true means it cannot be rescheduled
resource:
$ref: '#/definitions/Resource'
feature:
$ref: '#/definitions/Feature'
PlanningSolution:
type: object
properties:
jobs:
type: array
items:
$ref: '#/definitions/PlannedFeature'
Error:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
fields:
type: string