type: string
- in: query
name: category
- description: An event category to filter events by.
+ description: >
+ An event category to filter events by. These categories are subject
+ to change depending on the version of Patchwork deployed and are
+ not subject to the versionining constraints present across the rest
+ of the API.
schema:
title: ''
type: string
mapping:
cover-created: '#/components/schemas/EventCoverCreated'
patch-created: '#/components/schemas/EventPatchCreated'
- patch-completed: >
- '#/components/schemas/EventPatchCompleted'
- patch-state-changed: >
- '#/components/schemas/EventPatchStateChanged'
- patch-relation-changed: >
- '#/components/schemas/EventPatchRelationChanged'
- patch-delegated: >
- '#/components/schemas/EventPatchDelegated'
+ patch-completed: '#/components/schemas/EventPatchCompleted'
+ patch-state-changed: '#/components/schemas/EventPatchStateChanged'
+ patch-relation-changed: '#/components/schemas/EventPatchRelationChanged'
+ patch-delegated: '#/components/schemas/EventPatchDelegated'
check-created: '#/components/schemas/EventCheckCreated'
series-created: '#/components/schemas/EventSeriesCreated'
- series-completed: >
- '#/components/schemas/EventSeriesCompleted'
+ series-completed: '#/components/schemas/EventSeriesCompleted'
tags:
- events
/api/patches/:
type: string
- in: query
name: category
- description: An event category to filter events by.
+ description: >
+ An event category to filter events by. These categories are subject
+ to change depending on the version of Patchwork deployed and are
+ not subject to the versionining constraints present across the rest
+ of the API.
schema:
title: ''
type: string
- patch-created
- patch-completed
- patch-state-changed
-{% if version >= (1, 2) %}
- patch-relation-changed
-{% endif %}
- patch-delegated
- check-created
- series-created
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
- $ref: '#/components/schemas/EventPatchStateChanged'
-{% if version >= (1, 2) %}
- $ref: '#/components/schemas/EventPatchRelationChanged'
-{% endif %}
- $ref: '#/components/schemas/EventPatchDelegated'
- $ref: '#/components/schemas/EventCheckCreated'
- $ref: '#/components/schemas/EventSeriesCreated'
mapping:
cover-created: '#/components/schemas/EventCoverCreated'
patch-created: '#/components/schemas/EventPatchCreated'
- patch-completed: >
- '#/components/schemas/EventPatchCompleted'
- patch-state-changed: >
- '#/components/schemas/EventPatchStateChanged'
-{% if version >= (1, 2) %}
- patch-relation-changed: >
- '#/components/schemas/EventPatchRelationChanged'
-{% endif %}
- patch-delegated: >
- '#/components/schemas/EventPatchDelegated'
+ patch-completed: '#/components/schemas/EventPatchCompleted'
+ patch-state-changed: '#/components/schemas/EventPatchStateChanged'
+ patch-relation-changed: '#/components/schemas/EventPatchRelationChanged'
+ patch-delegated: '#/components/schemas/EventPatchDelegated'
check-created: '#/components/schemas/EventCheckCreated'
series-created: '#/components/schemas/EventSeriesCreated'
- series-completed: >
- '#/components/schemas/EventSeriesCompleted'
+ series-completed: '#/components/schemas/EventSeriesCompleted'
tags:
- events
/api/{{ version_url }}patches/:
current_state:
title: Current state
type: string
-{% if version >= (1, 2) %}
EventPatchRelationChanged:
allOf:
- $ref: '#/components/schemas/EventBase'
title: Current relation
type: string
nullable: true
-{% endif %}
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
type: string
- in: query
name: category
- description: An event category to filter events by.
+ description: >
+ An event category to filter events by. These categories are subject
+ to change depending on the version of Patchwork deployed and are
+ not subject to the versionining constraints present across the rest
+ of the API.
schema:
title: ''
type: string
- patch-created
- patch-completed
- patch-state-changed
+ - patch-relation-changed
- patch-delegated
- check-created
- series-created
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
- $ref: '#/components/schemas/EventPatchStateChanged'
+ - $ref: '#/components/schemas/EventPatchRelationChanged'
- $ref: '#/components/schemas/EventPatchDelegated'
- $ref: '#/components/schemas/EventCheckCreated'
- $ref: '#/components/schemas/EventSeriesCreated'
mapping:
cover-created: '#/components/schemas/EventCoverCreated'
patch-created: '#/components/schemas/EventPatchCreated'
- patch-completed: >
- '#/components/schemas/EventPatchCompleted'
- patch-state-changed: >
- '#/components/schemas/EventPatchStateChanged'
- patch-delegated: >
- '#/components/schemas/EventPatchDelegated'
+ patch-completed: '#/components/schemas/EventPatchCompleted'
+ patch-state-changed: '#/components/schemas/EventPatchStateChanged'
+ patch-relation-changed: '#/components/schemas/EventPatchRelationChanged'
+ patch-delegated: '#/components/schemas/EventPatchDelegated'
check-created: '#/components/schemas/EventCheckCreated'
series-created: '#/components/schemas/EventSeriesCreated'
- series-completed: >
- '#/components/schemas/EventSeriesCompleted'
+ series-completed: '#/components/schemas/EventSeriesCompleted'
tags:
- events
/api/1.0/patches/:
current_state:
title: Current state
type: string
+ EventPatchRelationChanged:
+ allOf:
+ - $ref: '#/components/schemas/EventBase'
+ - type: object
+ properties:
+ category:
+ enum:
+ - patch-relation-changed
+ payload:
+ properties:
+ patch:
+ $ref: '#/components/schemas/PatchEmbedded'
+ previous_relation:
+ title: Previous relation
+ type: string
+ nullable: true
+ current_relation:
+ title: Current relation
+ type: string
+ nullable: true
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
type: string
- in: query
name: category
- description: An event category to filter events by.
+ description: >
+ An event category to filter events by. These categories are subject
+ to change depending on the version of Patchwork deployed and are
+ not subject to the versionining constraints present across the rest
+ of the API.
schema:
title: ''
type: string
- patch-created
- patch-completed
- patch-state-changed
+ - patch-relation-changed
- patch-delegated
- check-created
- series-created
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
- $ref: '#/components/schemas/EventPatchStateChanged'
+ - $ref: '#/components/schemas/EventPatchRelationChanged'
- $ref: '#/components/schemas/EventPatchDelegated'
- $ref: '#/components/schemas/EventCheckCreated'
- $ref: '#/components/schemas/EventSeriesCreated'
mapping:
cover-created: '#/components/schemas/EventCoverCreated'
patch-created: '#/components/schemas/EventPatchCreated'
- patch-completed: >
- '#/components/schemas/EventPatchCompleted'
- patch-state-changed: >
- '#/components/schemas/EventPatchStateChanged'
- patch-delegated: >
- '#/components/schemas/EventPatchDelegated'
+ patch-completed: '#/components/schemas/EventPatchCompleted'
+ patch-state-changed: '#/components/schemas/EventPatchStateChanged'
+ patch-relation-changed: '#/components/schemas/EventPatchRelationChanged'
+ patch-delegated: '#/components/schemas/EventPatchDelegated'
check-created: '#/components/schemas/EventCheckCreated'
series-created: '#/components/schemas/EventSeriesCreated'
- series-completed: >
- '#/components/schemas/EventSeriesCompleted'
+ series-completed: '#/components/schemas/EventSeriesCompleted'
tags:
- events
/api/1.1/patches/:
current_state:
title: Current state
type: string
+ EventPatchRelationChanged:
+ allOf:
+ - $ref: '#/components/schemas/EventBase'
+ - type: object
+ properties:
+ category:
+ enum:
+ - patch-relation-changed
+ payload:
+ properties:
+ patch:
+ $ref: '#/components/schemas/PatchEmbedded'
+ previous_relation:
+ title: Previous relation
+ type: string
+ nullable: true
+ current_relation:
+ title: Current relation
+ type: string
+ nullable: true
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
type: string
- in: query
name: category
- description: An event category to filter events by.
+ description: >
+ An event category to filter events by. These categories are subject
+ to change depending on the version of Patchwork deployed and are
+ not subject to the versionining constraints present across the rest
+ of the API.
schema:
title: ''
type: string
mapping:
cover-created: '#/components/schemas/EventCoverCreated'
patch-created: '#/components/schemas/EventPatchCreated'
- patch-completed: >
- '#/components/schemas/EventPatchCompleted'
- patch-state-changed: >
- '#/components/schemas/EventPatchStateChanged'
- patch-relation-changed: >
- '#/components/schemas/EventPatchRelationChanged'
- patch-delegated: >
- '#/components/schemas/EventPatchDelegated'
+ patch-completed: '#/components/schemas/EventPatchCompleted'
+ patch-state-changed: '#/components/schemas/EventPatchStateChanged'
+ patch-relation-changed: '#/components/schemas/EventPatchRelationChanged'
+ patch-delegated: '#/components/schemas/EventPatchDelegated'
check-created: '#/components/schemas/EventCheckCreated'
series-created: '#/components/schemas/EventSeriesCreated'
- series-completed: >
- '#/components/schemas/EventSeriesCompleted'
+ series-completed: '#/components/schemas/EventSeriesCompleted'
tags:
- events
/api/1.2/patches/:
type: string
- in: query
name: category
- description: An event category to filter events by.
+ description: >
+ An event category to filter events by. These categories are subject
+ to change depending on the version of Patchwork deployed and are
+ not subject to the versionining constraints present across the rest
+ of the API.
schema:
title: ''
type: string
mapping:
cover-created: '#/components/schemas/EventCoverCreated'
patch-created: '#/components/schemas/EventPatchCreated'
- patch-completed: >
- '#/components/schemas/EventPatchCompleted'
- patch-state-changed: >
- '#/components/schemas/EventPatchStateChanged'
- patch-relation-changed: >
- '#/components/schemas/EventPatchRelationChanged'
- patch-delegated: >
- '#/components/schemas/EventPatchDelegated'
+ patch-completed: '#/components/schemas/EventPatchCompleted'
+ patch-state-changed: '#/components/schemas/EventPatchStateChanged'
+ patch-relation-changed: '#/components/schemas/EventPatchRelationChanged'
+ patch-delegated: '#/components/schemas/EventPatchDelegated'
check-created: '#/components/schemas/EventCheckCreated'
series-created: '#/components/schemas/EventSeriesCreated'
- series-completed: >
- '#/components/schemas/EventSeriesCompleted'
+ series-completed: '#/components/schemas/EventSeriesCompleted'
tags:
- events
/api/1.3/patches/: