aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2019-11-30 16:54:48 +0000
committerStephen Finucane <stephen@that.guru>2019-11-30 17:00:49 +0000
commite7651eab16e1ac2beb24dbbd879ba865bcb139b2 (patch)
tree323e0b6e1cc22bae5ae14952106e450d63b99cb6 /docs
parente0f3220b3698fa3f9383b8c536a01f57cad8df15 (diff)
downloadpatchwork-e7651eab16e1ac2beb24dbbd879ba865bcb139b2.tar
patchwork-e7651eab16e1ac2beb24dbbd879ba865bcb139b2.tar.gz
docs: Only include 'order' filter in '/events/' for v1.2+
Even though we don't actually version this thing, don't document for older versions of the API lest people using older deployments get confused. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'docs')
-rw-r--r--docs/api/schemas/patchwork.j22
-rw-r--r--docs/api/schemas/v1.0/patchwork.yaml1
-rw-r--r--docs/api/schemas/v1.1/patchwork.yaml1
3 files changed, 2 insertions, 2 deletions
diff --git a/docs/api/schemas/patchwork.j2 b/docs/api/schemas/patchwork.j2
index 12a6f67..e2c8a8c 100644
--- a/docs/api/schemas/patchwork.j2
+++ b/docs/api/schemas/patchwork.j2
@@ -336,7 +336,9 @@ paths:
parameters:
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PageSize'
+{% if version >= (1, 2) %}
- $ref: '#/components/parameters/Order'
+{% endif %}
- $ref: '#/components/parameters/Search'
- $ref: '#/components/parameters/BeforeFilter'
- $ref: '#/components/parameters/SinceFilter'
diff --git a/docs/api/schemas/v1.0/patchwork.yaml b/docs/api/schemas/v1.0/patchwork.yaml
index e6adfdd..b01cbcf 100644
--- a/docs/api/schemas/v1.0/patchwork.yaml
+++ b/docs/api/schemas/v1.0/patchwork.yaml
@@ -216,7 +216,6 @@ paths:
parameters:
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PageSize'
- - $ref: '#/components/parameters/Order'
- $ref: '#/components/parameters/Search'
- $ref: '#/components/parameters/BeforeFilter'
- $ref: '#/components/parameters/SinceFilter'
diff --git a/docs/api/schemas/v1.1/patchwork.yaml b/docs/api/schemas/v1.1/patchwork.yaml
index 6af697c..f85c871 100644
--- a/docs/api/schemas/v1.1/patchwork.yaml
+++ b/docs/api/schemas/v1.1/patchwork.yaml
@@ -216,7 +216,6 @@ paths:
parameters:
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PageSize'
- - $ref: '#/components/parameters/Order'
- $ref: '#/components/parameters/Search'
- $ref: '#/components/parameters/BeforeFilter'
- $ref: '#/components/parameters/SinceFilter'