-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenapi.yaml
More file actions
263 lines (263 loc) · 7.89 KB
/
Copy pathopenapi.yaml
File metadata and controls
263 lines (263 loc) · 7.89 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
openapi: 3.1.0
info:
title: Ripple API
version: 0.1.0
description: Local JSON API for bot-driven task management.
servers:
- url: http://localhost:8080
paths:
/api:
get:
summary: Discover API capabilities and bot rules
responses:
"200":
description: API discovery document
/api/docs:
get:
summary: Bot-facing Markdown usage guide
responses:
"200":
description: Markdown documentation
/api/openapi.yaml:
get:
summary: OpenAPI schema
responses:
"200":
description: OpenAPI YAML
/api/projects:
get:
summary: List projects
responses:
"200":
description: Projects
post:
summary: Create a project
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [name]
properties:
id:
type: string
name:
type: string
prefix:
type: string
workingDirectory:
type: string
description: Absolute path to the repo or folder where Codex should work (agent mode).
deliveryMode:
type: string
enum: [agent, backlog]
description: agent = one-repo delivery loop (default). backlog = portfolio planning across repos; agent queue runs disabled.
autonomyMode:
type: string
enum: [autonomous, supervised]
description: How far automation may go without a human (agent mode). Defaults to autonomous. Invalid values normalize to autonomous.
defaultBranchOverride:
type: string
description: Optional default branch name when auto-detect is wrong. Empty means auto-detect.
prBaseBranch:
type: string
description: Optional PR base branch. Empty uses the resolved default branch.
qualityGateMode:
type: string
enum: [strict, warn]
description: strict fails on quality gate errors; warn logs and continues. Defaults to strict.
deleteBranchOnMerge:
type: boolean
description: Delete the feature branch after merge. Defaults to true.
branchNameTemplate:
type: string
description: Feature branch template. Placeholders {id}, {slug}, {prefix}. Must include {id}. Defaults to ripple/{id}-{slug}.
responses:
"201":
description: Created project
/api/epics:
get:
summary: List epics
parameters:
- name: projectId
in: query
schema:
type: string
responses:
"200":
description: Epics
post:
summary: Create an epic
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [projectId, name]
properties:
id:
type: string
projectId:
type: string
name:
type: string
description:
type: string
responses:
"201":
description: Created epic
/api/stories:
get:
summary: List stories
description: Closed stories are excluded unless showClosed=1 or status=closed.
parameters:
- name: projectId
in: query
schema:
type: string
- name: epicId
in: query
schema:
type: string
- name: status
in: query
schema:
$ref: "#/components/schemas/StoryStatus"
- name: showClosed
in: query
schema:
type: string
enum: ["1"]
- name: targetRepo
in: query
schema:
type: string
description: Filter by story targetRepo (portfolio multi-repo targeting).
- name: updatedSince
in: query
schema:
type: string
description: RFC3339 or YYYY-MM-DD. Returns stories with updated_at on or after this time.
responses:
"200":
description: Stories
post:
summary: Create a story
description: Creates or reuses a project/epic when projectName or epicName are supplied.
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [title, description]
properties:
title:
type: string
description:
type: string
description: Markdown description.
status:
$ref: "#/components/schemas/BotWritableStatus"
projectId:
type: string
projectName:
type: string
projectPrefix:
type: string
workingDirectory:
type: string
description: Fills the project's working directory when the project has none.
projectPath:
type: string
deprecated: true
description: Alias for workingDirectory.
epicId:
type: string
epicName:
type: string
targetRepo:
type: string
description: Optional target repository name for portfolio/backlog projects.
responses:
"201":
description: Created story
/api/stories/{id}:
get:
summary: Get a story
parameters:
- $ref: "#/components/parameters/StoryID"
responses:
"200":
description: Story
patch:
summary: Update story details
parameters:
- $ref: "#/components/parameters/StoryID"
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
title:
type: string
description:
type: string
epicId:
type: string
description: Empty string removes the epic.
targetRepo:
type: string
description: Target repository name. Empty string clears it.
responses:
"200":
description: Updated story
/api/stories/{id}/status:
patch:
summary: Move a story through the bot-writable workflow
description: Bots may set backlog, in_progress, or done. queued, in_review, and closed are not bot-writable.
parameters:
- $ref: "#/components/parameters/StoryID"
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [status]
properties:
status:
$ref: "#/components/schemas/BotWritableStatus"
responses:
"200":
description: Updated story
"400":
description: Invalid status
/api/stories/{id}/events:
get:
summary: Get story event history
parameters:
- $ref: "#/components/parameters/StoryID"
responses:
"200":
description: Story events
components:
parameters:
StoryID:
name: id
in: path
required: true
schema:
type: string
example: ACM-001
schemas:
StoryStatus:
type: string
enum: [backlog, queued, in_progress, in_review, done, closed]
BotWritableStatus:
type: string
enum: [backlog, in_progress, done]