Skip to content

Commit c42d9b0

Browse files
committed
docs: Add note about 'series' querystring arg to api-ref
Signed-off-by: Stephen Finucane <[email protected]>
1 parent 34175f7 commit c42d9b0

File tree

6 files changed

+231
-119
lines changed

6 files changed

+231
-119
lines changed

docs/api/schemas/latest/patchwork.yaml

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
openapi: '3.1.0'
66
info:
77
title: Patchwork API
8-
description: >
8+
description: |
99
Patchwork is a web-based patch tracking system designed to facilitate the
1010
contribution and management of contributions to an open-source project.
1111
contact:
@@ -212,7 +212,7 @@ paths:
212212
- $ref: '#/components/parameters/SinceFilter'
213213
- in: query
214214
name: project
215-
description: >
215+
description: |
216216
An ID or linkname of a project to filter cover letters by.
217217
schema:
218218
title: ''
@@ -225,14 +225,14 @@ paths:
225225
type: string
226226
- in: query
227227
name: submitter
228-
description: >
228+
description: |
229229
An ID or email address of a person to filter cover letters by.
230230
schema:
231231
title: ''
232232
type: string
233233
- in: query
234234
name: msgid
235-
description: >
235+
description: |
236236
The cover message-id as a case-sensitive string, without leading or
237237
trailing angle brackets, to filter by.
238238
schema:
@@ -283,7 +283,7 @@ paths:
283283
parameters:
284284
- in: path
285285
name: id
286-
description: >
286+
description: |
287287
A unique integer value identifying the parent cover letter.
288288
required: true
289289
schema:
@@ -504,7 +504,7 @@ paths:
504504
type: integer
505505
- in: query
506506
name: submitter
507-
description: >
507+
description: |
508508
An ID or email address of a person to filter patches by.
509509
schema:
510510
title: ''
@@ -523,7 +523,7 @@ paths:
523523
type: string
524524
- in: query
525525
name: archived
526-
description: >
526+
description: |
527527
Show only archived (`true`) or non-archived (`false`) patches.
528528
schema:
529529
title: ''
@@ -533,14 +533,14 @@ paths:
533533
- 'false'
534534
- in: query
535535
name: hash
536-
description: >
536+
description: |
537537
The patch hash as a case-insensitive hexadecimal string, to filter by.
538538
schema:
539539
title: ''
540540
type: string
541541
- in: query
542542
name: msgid
543-
description: >
543+
description: |
544544
The patch message-id as a case-sensitive string, without leading or
545545
trailing angle brackets, to filter by.
546546
schema:
@@ -1514,6 +1514,9 @@ components:
15141514
type: boolean
15151515
mbox:
15161516
title: Mbox
1517+
description: |
1518+
A URL to download the bundle in mbox format. Patches will be
1519+
ordered in the same order that they are defined in the bundle.
15171520
type: string
15181521
format: uri
15191522
readOnly: true
@@ -1566,7 +1569,7 @@ components:
15661569
- fail
15671570
target_url:
15681571
title: Target URL
1569-
description: >
1572+
description: |
15701573
The target URL to associate with this check. This should be
15711574
specific to the patch.
15721575
type:
@@ -1579,7 +1582,7 @@ components:
15791582
maxLength: 200
15801583
context:
15811584
title: Context
1582-
description: >
1585+
description: |
15831586
A label to discern check from checks of other testing systems.
15841587
type: string
15851588
pattern: ^[-a-zA-Z0-9_]+$
@@ -1766,6 +1769,8 @@ components:
17661769
- $ref: '#/components/schemas/PersonEmbedded'
17671770
mbox:
17681771
title: Mbox
1772+
description: |
1773+
A URL to download the cover letter in mbox format.
17691774
type: string
17701775
format: uri
17711776
readOnly: true
@@ -2090,6 +2095,10 @@ components:
20902095
- $ref: '#/components/schemas/UserEmbedded'
20912096
mbox:
20922097
title: Mbox
2098+
description: |
2099+
A URL to download the patch in mbox format. Add the `series=*`
2100+
querystring parameter to include series dependencies in the mbox
2101+
file.
20932102
type: string
20942103
format: uri
20952104
readOnly: true
@@ -2293,7 +2302,7 @@ components:
22932302
uniqueItems: true
22942303
subject_match:
22952304
title: Subject match
2296-
description: >
2305+
description: |
22972306
Regex to match the subject against if only part of emails sent to
22982307
the list belongs to this project. Will be used with IGNORECASE and
22992308
MULTILINE flags. If rules for more projects match the first one
@@ -2314,7 +2323,7 @@ components:
23142323
maxLength: 2000
23152324
list_archive_url_format:
23162325
title: List archive URL format
2317-
description: >
2326+
description: |
23182327
URL format for the list archive's Message-ID redirector. {} will be
23192328
replaced by the Message-ID.
23202329
type:
@@ -2349,7 +2358,7 @@ components:
23492358
$ref: '#/components/schemas/ProjectEmbedded'
23502359
name:
23512360
title: Name
2352-
description: >
2361+
description: |
23532362
An optional name to associate with the series, e.g. "John's PCI
23542363
series".
23552364
type:
@@ -2372,12 +2381,12 @@ components:
23722381
- $ref: '#/components/schemas/PersonEmbedded'
23732382
version:
23742383
title: Version
2375-
description: >
2384+
description: |
23762385
Version of series as indicated by the subject prefix(es).
23772386
type: integer
23782387
total:
23792388
title: Total
2380-
description: >
2389+
description: |
23812390
Number of patches in series as indicated by the subject prefix(es).
23822391
type: integer
23832392
readOnly: true
@@ -2391,6 +2400,8 @@ components:
23912400
readOnly: true
23922401
mbox:
23932402
title: Mbox
2403+
description: |
2404+
A URL to download the series in mbox format.
23942405
type: string
23952406
format: uri
23962407
readOnly: true
@@ -2446,13 +2457,13 @@ components:
24462457
properties:
24472458
send_email:
24482459
title: Send email
2449-
description: >
2460+
description: |
24502461
Whether Patchwork should send email on your behalf.
24512462
Only present and configurable for your account.
24522463
type: boolean
24532464
items_per_page:
24542465
title: Items per page
2455-
description: >
2466+
description: |
24562467
Number of items to display per page (web UI).
24572468
Only present and configurable for your account.
24582469
type: integer
@@ -2491,7 +2502,7 @@ components:
24912502
- fail
24922503
target_url:
24932504
title: Target url
2494-
description: >
2505+
description: |
24952506
The target URL to associate with this check. This should be specific
24962507
to the patch.
24972508
readOnly: true
@@ -2505,7 +2516,7 @@ components:
25052516
maxLength: 200
25062517
context:
25072518
title: Context
2508-
description: >
2519+
description: |
25092520
A label to discern check from checks of other testing systems.
25102521
type: string
25112522
pattern: ^[-a-zA-Z0-9_]+$
@@ -2590,6 +2601,8 @@ components:
25902601
minLength: 1
25912602
mbox:
25922603
title: Mbox
2604+
description: |
2605+
A URL to download the cover letter in mbox format.
25932606
type: string
25942607
format: uri
25952608
readOnly: true
@@ -2633,6 +2646,10 @@ components:
26332646
minLength: 1
26342647
mbox:
26352648
title: Mbox
2649+
description: |
2650+
A URL to download the patch in mbox format. Add the `series=*`
2651+
querystring parameter to include series dependencies in the mbox
2652+
file.
26362653
type: string
26372654
format: uri
26382655
readOnly: true
@@ -2759,7 +2776,7 @@ components:
27592776
readOnly: true
27602777
name:
27612778
title: Name
2762-
description: >
2779+
description: |
27632780
An optional name to associate with the series, e.g. "John's PCI
27642781
series".
27652782
readOnly: true
@@ -2777,12 +2794,14 @@ components:
27772794
readOnly: true
27782795
version:
27792796
title: Version
2780-
description: >
2797+
description: |
27812798
Version of series as indicated by the subject prefix(es).
27822799
type: integer
27832800
readOnly: true
27842801
mbox:
27852802
title: Mbox
2803+
description: |
2804+
A URL to download the series in mbox format.
27862805
type: string
27872806
format: uri
27882807
readOnly: true

0 commit comments

Comments
 (0)