Skip to content

Commit 3fbe760

Browse files
committed
openapi: Set summary for paths
This shows up in e.g. reDoc, while the description does not. We will add more detailed descriptions later. Signed-off-by: Stephen Finucane <[email protected]>
1 parent ef55117 commit 3fbe760

File tree

6 files changed

+180
-168
lines changed

6 files changed

+180
-168
lines changed

docs/api/schemas/latest/patchwork.yaml

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ info:
1717
paths:
1818
/api:
1919
get:
20-
description: List API resources.
20+
summary: List API resources.
2121
operationId: api_list
2222
parameters: []
2323
responses:
@@ -31,7 +31,7 @@ paths:
3131
- api
3232
/api/bundles:
3333
get:
34-
description: List bundles.
34+
summary: List bundles.
3535
operationId: bundles_list
3636
parameters:
3737
- $ref: '#/components/parameters/Page'
@@ -74,7 +74,7 @@ paths:
7474
tags:
7575
- bundles
7676
post:
77-
description: Create a bundle.
77+
summary: Create a bundle.
7878
operationId: bundles_create
7979
security:
8080
- basicAuth: []
@@ -112,7 +112,7 @@ paths:
112112
title: ID
113113
type: integer
114114
get:
115-
description: Show a bundle.
115+
summary: Show a bundle.
116116
operationId: bundles_read
117117
responses:
118118
'200':
@@ -130,7 +130,7 @@ paths:
130130
tags:
131131
- bundles
132132
patch:
133-
description: Update a bundle (partial).
133+
summary: Update a bundle (partial).
134134
operationId: bundles_partial_update
135135
security:
136136
- basicAuth: []
@@ -165,7 +165,10 @@ paths:
165165
tags:
166166
- bundles
167167
put:
168-
description: Update a bundle.
168+
summary: Update a bundle.
169+
description:
170+
Update an existing bundle.
171+
The bundle must be owned by the currently authenticated user.
169172
operationId: bundles_update
170173
security:
171174
- basicAuth: []
@@ -201,7 +204,7 @@ paths:
201204
- bundles
202205
/api/covers:
203206
get:
204-
description: List cover letters.
207+
summary: List cover letters.
205208
operationId: covers_list
206209
parameters:
207210
- $ref: '#/components/parameters/Page'
@@ -262,7 +265,7 @@ paths:
262265
title: ID
263266
type: integer
264267
get:
265-
description: Show a cover letter.
268+
summary: Show a cover letter.
266269
operationId: covers_read
267270
responses:
268271
'200':
@@ -290,7 +293,7 @@ paths:
290293
title: ID
291294
type: integer
292295
get:
293-
description: List comments
296+
summary: List cover letter comments
294297
operationId: cover_comments_list
295298
parameters:
296299
- $ref: '#/components/parameters/Page'
@@ -334,7 +337,7 @@ paths:
334337
title: Comment ID
335338
type: integer
336339
get:
337-
description: Show a cover comment.
340+
summary: Show a cover letter comment.
338341
operationId: cover_comments_read
339342
responses:
340343
'200':
@@ -352,7 +355,7 @@ paths:
352355
tags:
353356
- comments
354357
patch:
355-
description: Update a cover comment (partial).
358+
summary: Update a cover letter comment (partial).
356359
operationId: cover_comments_partial_update
357360
requestBody:
358361
$ref: '#/components/requestBodies/Comment'
@@ -385,7 +388,7 @@ paths:
385388
- comments
386389
/api/events:
387390
get:
388-
description: List events.
391+
summary: List events.
389392
operationId: events_list
390393
parameters:
391394
- $ref: '#/components/parameters/Page'
@@ -481,7 +484,7 @@ paths:
481484
- events
482485
/api/patches:
483486
get:
484-
description: List patches.
487+
summary: List patches.
485488
operationId: patches_list
486489
parameters:
487490
- $ref: '#/components/parameters/Page'
@@ -570,7 +573,7 @@ paths:
570573
title: ID
571574
type: integer
572575
get:
573-
description: Show a patch.
576+
summary: Show a patch.
574577
operationId: patches_read
575578
responses:
576579
'200':
@@ -588,7 +591,7 @@ paths:
588591
tags:
589592
- patches
590593
patch:
591-
description: Update a patch (partial).
594+
summary: Update a patch (partial).
592595
operationId: patches_partial_update
593596
security:
594597
- basicAuth: []
@@ -679,7 +682,7 @@ paths:
679682
title: ID
680683
type: integer
681684
get:
682-
description: List comments
685+
summary: List comments
683686
operationId: patch_comments_list
684687
parameters:
685688
- $ref: '#/components/parameters/Page'
@@ -723,7 +726,7 @@ paths:
723726
title: Comment ID
724727
type: integer
725728
get:
726-
description: Show a patch comment.
729+
summary: Show a patch comment.
727730
operationId: patch_comments_read
728731
responses:
729732
'200':
@@ -741,7 +744,7 @@ paths:
741744
tags:
742745
- comments
743746
patch:
744-
description: Update a patch comment (partial).
747+
summary: Update a patch comment (partial).
745748
operationId: patch_comments_partial_update
746749
requestBody:
747750
$ref: '#/components/requestBodies/Comment'
@@ -782,7 +785,7 @@ paths:
782785
title: Patch ID
783786
type: integer
784787
get:
785-
description: List checks.
788+
summary: List checks.
786789
operationId: checks_list
787790
parameters:
788791
- $ref: '#/components/parameters/Page'
@@ -835,7 +838,7 @@ paths:
835838
tags:
836839
- checks
837840
post:
838-
description: Create a check.
841+
summary: Create a check.
839842
operationId: checks_create
840843
security:
841844
- basicAuth: []
@@ -886,7 +889,7 @@ paths:
886889
title: Check ID
887890
type: integer
888891
get:
889-
description: Show a check.
892+
summary: Show a check.
890893
operationId: checks_read
891894
responses:
892895
'200':
@@ -905,7 +908,7 @@ paths:
905908
- checks
906909
/api/people:
907910
get:
908-
description: List people.
911+
summary: List people.
909912
operationId: people_list
910913
security:
911914
- basicAuth: []
@@ -945,7 +948,7 @@ paths:
945948
title: ID
946949
type: integer
947950
get:
948-
description: Show a person.
951+
summary: Show a person.
949952
operationId: people_read
950953
security:
951954
- basicAuth: []
@@ -973,7 +976,7 @@ paths:
973976
- people
974977
/api/projects:
975978
get:
976-
description: List projects.
979+
summary: List projects.
977980
operationId: projects_list
978981
parameters:
979982
- $ref: '#/components/parameters/Page'
@@ -1005,7 +1008,7 @@ paths:
10051008
# TODO: Add regex?
10061009
type: string
10071010
get:
1008-
description: Show a project.
1011+
summary: Show a project.
10091012
operationId: projects_read
10101013
responses:
10111014
'200':
@@ -1023,7 +1026,7 @@ paths:
10231026
tags:
10241027
- projects
10251028
patch:
1026-
description: Update a project (partial).
1029+
summary: Update a project (partial).
10271030
operationId: projects_partial_update
10281031
security:
10291032
- basicAuth: []
@@ -1094,7 +1097,7 @@ paths:
10941097
- projects
10951098
/api/series:
10961099
get:
1097-
description: List series.
1100+
summary: List series.
10981101
operationId: series_list
10991102
parameters:
11001103
- $ref: '#/components/parameters/Page'
@@ -1139,7 +1142,7 @@ paths:
11391142
title: ID
11401143
type: integer
11411144
get:
1142-
description: Show a series.
1145+
summary: Show a series.
11431146
operationId: series_read
11441147
responses:
11451148
'200':
@@ -1158,7 +1161,7 @@ paths:
11581161
- series
11591162
/api/users:
11601163
get:
1161-
description: List users.
1164+
summary: List users.
11621165
operationId: users_list
11631166
security:
11641167
- basicAuth: []
@@ -1198,7 +1201,7 @@ paths:
11981201
title: ID
11991202
type: integer
12001203
get:
1201-
description: Show a user.
1204+
summary: Show a user.
12021205
operationId: users_read
12031206
security:
12041207
- basicAuth: []
@@ -1225,7 +1228,7 @@ paths:
12251228
tags:
12261229
- users
12271230
patch:
1228-
description: Update a user (partial).
1231+
summary: Update a user (partial).
12291232
operationId: users_partial_update
12301233
security:
12311234
- basicAuth: []

0 commit comments

Comments
 (0)