url: https://www.gnu.org/licenses/gpl-2.0.html
version: '1.3'
paths:
- /api/:
+ /api:
get:
description: List API resources.
operationId: api_list
$ref: '#/components/schemas/Index'
tags:
- api
- /api/bundles/:
+ /api/bundles:
get:
description: List bundles.
operationId: bundles_list
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/bundles/{id}/:
+ /api/bundles/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/covers/:
+ /api/covers:
get:
description: List cover letters.
operationId: covers_list
$ref: '#/components/schemas/CoverList'
tags:
- covers
- /api/covers/{id}/:
+ /api/covers/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- covers
- /api/covers/{id}/comments/:
+ /api/covers/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/covers/{cover_id}/comments/{comment_id}/:
+ /api/covers/{cover_id}/comments/{comment_id}:
parameters:
- in: path
name: cover_id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/events/:
+ /api/events:
get:
description: List events.
operationId: events_list
patch-comment-created: '#/components/schemas/EventPatchCommentCreated'
tags:
- events
- /api/patches/:
+ /api/patches:
get:
description: List patches.
operationId: patches_list
$ref: '#/components/schemas/PatchList'
tags:
- patches
- /api/patches/{id}/:
+ /api/patches/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- patches
- /api/patches/{id}/comments/:
+ /api/patches/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/patches/{patch_id}/comments/{comment_id}/:
+ /api/patches/{patch_id}/comments/{comment_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/patches/{patch_id}/checks/:
+ /api/patches/{patch_id}/checks:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/patches/{patch_id}/checks/{check_id}/:
+ /api/patches/{patch_id}/checks/{check_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/people/:
+ /api/people:
get:
description: List people.
operationId: people_list
$ref: '#/components/schemas/Error'
tags:
- people
- /api/people/{id}/:
+ /api/people/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- people
- /api/projects/:
+ /api/projects:
get:
description: List projects.
operationId: projects_list
$ref: '#/components/schemas/Project'
tags:
- projects
- /api/projects/{id}/:
+ /api/projects/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- projects
- /api/series/:
+ /api/series:
get:
description: List series.
operationId: series_list
$ref: '#/components/schemas/Series'
tags:
- series
- /api/series/{id}/:
+ /api/series/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- series
- /api/users/:
+ /api/users:
get:
description: List users.
operationId: users_list
$ref: '#/components/schemas/Error'
tags:
- users
- /api/users/{id}/:
+ /api/users/{id}:
parameters:
- in: path
name: id
url: https://www.gnu.org/licenses/gpl-2.0.html
version: '{{ version_str }}'
paths:
+{% if version_url %}
/api/{{ version_url}}:
+{% else %}
+ /api:
+{% endif %}
get:
description: List API resources.
operationId: api_list
$ref: '#/components/schemas/Index'
tags:
- api
- /api/{{ version_url}}bundles/:
+ /api/{{ version_url}}bundles:
get:
description: List bundles.
operationId: bundles_list
tags:
- bundles
{% endif %}
- /api/{{ version_url }}bundles/{id}/:
+ /api/{{ version_url }}bundles/{id}:
parameters:
- in: path
name: id
tags:
- bundles
{% endif %}
- /api/{{ version_url }}covers/:
+ /api/{{ version_url }}covers:
get:
description: List cover letters.
operationId: covers_list
$ref: '#/components/schemas/CoverList'
tags:
- covers
- /api/{{ version_url }}covers/{id}/:
+ /api/{{ version_url }}covers/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- covers
- /api/{{ version_url }}covers/{id}/comments/:
+ /api/{{ version_url }}covers/{id}/comments:
parameters:
- in: path
name: id
tags:
- comments
{% if version >= (1, 3) %}
- /api/{{ version_url }}covers/{cover_id}/comments/{comment_id}/:
+ /api/{{ version_url }}covers/{cover_id}/comments/{comment_id}:
parameters:
- in: path
name: cover_id
tags:
- comments
{% endif %}
- /api/{{ version_url }}events/:
+ /api/{{ version_url }}events:
get:
description: List events.
operationId: events_list
patch-comment-created: '#/components/schemas/EventPatchCommentCreated'
tags:
- events
- /api/{{ version_url }}patches/:
+ /api/{{ version_url }}patches:
get:
description: List patches.
operationId: patches_list
$ref: '#/components/schemas/PatchList'
tags:
- patches
- /api/{{ version_url }}patches/{id}/:
+ /api/{{ version_url }}patches/{id}:
parameters:
- in: path
name: id
{% endif %}
tags:
- patches
- /api/{{ version_url }}patches/{id}/comments/:
+ /api/{{ version_url }}patches/{id}/comments:
parameters:
- in: path
name: id
tags:
- comments
{% if version >= (1, 3) %}
- /api/{{ version_url }}patches/{patch_id}/comments/{comment_id}/:
+ /api/{{ version_url }}patches/{patch_id}/comments/{comment_id}:
parameters:
- in: path
name: patch_id
tags:
- comments
{% endif %}
- /api/{{ version_url }}patches/{patch_id}/checks/:
+ /api/{{ version_url }}patches/{patch_id}/checks:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/{{ version_url }}patches/{patch_id}/checks/{check_id}/:
+ /api/{{ version_url }}patches/{patch_id}/checks/{check_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/{{ version_url }}people/:
+ /api/{{ version_url }}people:
get:
description: List people.
operationId: people_list
$ref: '#/components/schemas/Error'
tags:
- people
- /api/{{ version_url }}people/{id}/:
+ /api/{{ version_url }}people/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- people
- /api/{{ version_url }}projects/:
+ /api/{{ version_url }}projects:
get:
description: List projects.
operationId: projects_list
$ref: '#/components/schemas/Project'
tags:
- projects
- /api/{{ version_url }}projects/{id}/:
+ /api/{{ version_url }}projects/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- projects
- /api/{{ version_url }}series/:
+ /api/{{ version_url }}series:
get:
description: List series.
operationId: series_list
$ref: '#/components/schemas/Series'
tags:
- series
- /api/{{ version_url }}series/{id}/:
+ /api/{{ version_url }}series/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- series
- /api/{{ version_url }}users/:
+ /api/{{ version_url }}users:
get:
description: List users.
operationId: users_list
$ref: '#/components/schemas/Error'
tags:
- users
- /api/{{ version_url }}users/{id}/:
+ /api/{{ version_url }}users/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Index'
tags:
- api
- /api/1.0/bundles/:
+ /api/1.0/bundles:
get:
description: List bundles.
operationId: bundles_list
$ref: '#/components/schemas/Bundle'
tags:
- bundles
- /api/1.0/bundles/{id}/:
+ /api/1.0/bundles/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/1.0/covers/:
+ /api/1.0/covers:
get:
description: List cover letters.
operationId: covers_list
$ref: '#/components/schemas/CoverList'
tags:
- covers
- /api/1.0/covers/{id}/:
+ /api/1.0/covers/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- covers
- /api/1.0/covers/{id}/comments/:
+ /api/1.0/covers/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.0/events/:
+ /api/1.0/events:
get:
description: List events.
operationId: events_list
patch-comment-created: '#/components/schemas/EventPatchCommentCreated'
tags:
- events
- /api/1.0/patches/:
+ /api/1.0/patches:
get:
description: List patches.
operationId: patches_list
$ref: '#/components/schemas/PatchList'
tags:
- patches
- /api/1.0/patches/{id}/:
+ /api/1.0/patches/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- patches
- /api/1.0/patches/{id}/comments/:
+ /api/1.0/patches/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.0/patches/{patch_id}/checks/:
+ /api/1.0/patches/{patch_id}/checks:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.0/patches/{patch_id}/checks/{check_id}/:
+ /api/1.0/patches/{patch_id}/checks/{check_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.0/people/:
+ /api/1.0/people:
get:
description: List people.
operationId: people_list
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.0/people/{id}/:
+ /api/1.0/people/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.0/projects/:
+ /api/1.0/projects:
get:
description: List projects.
operationId: projects_list
$ref: '#/components/schemas/Project'
tags:
- projects
- /api/1.0/projects/{id}/:
+ /api/1.0/projects/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- projects
- /api/1.0/series/:
+ /api/1.0/series:
get:
description: List series.
operationId: series_list
$ref: '#/components/schemas/Series'
tags:
- series
- /api/1.0/series/{id}/:
+ /api/1.0/series/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- series
- /api/1.0/users/:
+ /api/1.0/users:
get:
description: List users.
operationId: users_list
$ref: '#/components/schemas/Error'
tags:
- users
- /api/1.0/users/{id}/:
+ /api/1.0/users/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Index'
tags:
- api
- /api/1.1/bundles/:
+ /api/1.1/bundles:
get:
description: List bundles.
operationId: bundles_list
$ref: '#/components/schemas/Bundle'
tags:
- bundles
- /api/1.1/bundles/{id}/:
+ /api/1.1/bundles/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/1.1/covers/:
+ /api/1.1/covers:
get:
description: List cover letters.
operationId: covers_list
$ref: '#/components/schemas/CoverList'
tags:
- covers
- /api/1.1/covers/{id}/:
+ /api/1.1/covers/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- covers
- /api/1.1/covers/{id}/comments/:
+ /api/1.1/covers/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.1/events/:
+ /api/1.1/events:
get:
description: List events.
operationId: events_list
patch-comment-created: '#/components/schemas/EventPatchCommentCreated'
tags:
- events
- /api/1.1/patches/:
+ /api/1.1/patches:
get:
description: List patches.
operationId: patches_list
$ref: '#/components/schemas/PatchList'
tags:
- patches
- /api/1.1/patches/{id}/:
+ /api/1.1/patches/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- patches
- /api/1.1/patches/{id}/comments/:
+ /api/1.1/patches/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.1/patches/{patch_id}/checks/:
+ /api/1.1/patches/{patch_id}/checks:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.1/patches/{patch_id}/checks/{check_id}/:
+ /api/1.1/patches/{patch_id}/checks/{check_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.1/people/:
+ /api/1.1/people:
get:
description: List people.
operationId: people_list
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.1/people/{id}/:
+ /api/1.1/people/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.1/projects/:
+ /api/1.1/projects:
get:
description: List projects.
operationId: projects_list
$ref: '#/components/schemas/Project'
tags:
- projects
- /api/1.1/projects/{id}/:
+ /api/1.1/projects/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- projects
- /api/1.1/series/:
+ /api/1.1/series:
get:
description: List series.
operationId: series_list
$ref: '#/components/schemas/Series'
tags:
- series
- /api/1.1/series/{id}/:
+ /api/1.1/series/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- series
- /api/1.1/users/:
+ /api/1.1/users:
get:
description: List users.
operationId: users_list
$ref: '#/components/schemas/Error'
tags:
- users
- /api/1.1/users/{id}/:
+ /api/1.1/users/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Index'
tags:
- api
- /api/1.2/bundles/:
+ /api/1.2/bundles:
get:
description: List bundles.
operationId: bundles_list
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/1.2/bundles/{id}/:
+ /api/1.2/bundles/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/1.2/covers/:
+ /api/1.2/covers:
get:
description: List cover letters.
operationId: covers_list
$ref: '#/components/schemas/CoverList'
tags:
- covers
- /api/1.2/covers/{id}/:
+ /api/1.2/covers/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- covers
- /api/1.2/covers/{id}/comments/:
+ /api/1.2/covers/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.2/events/:
+ /api/1.2/events:
get:
description: List events.
operationId: events_list
patch-comment-created: '#/components/schemas/EventPatchCommentCreated'
tags:
- events
- /api/1.2/patches/:
+ /api/1.2/patches:
get:
description: List patches.
operationId: patches_list
$ref: '#/components/schemas/PatchList'
tags:
- patches
- /api/1.2/patches/{id}/:
+ /api/1.2/patches/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- patches
- /api/1.2/patches/{id}/comments/:
+ /api/1.2/patches/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.2/patches/{patch_id}/checks/:
+ /api/1.2/patches/{patch_id}/checks:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.2/patches/{patch_id}/checks/{check_id}/:
+ /api/1.2/patches/{patch_id}/checks/{check_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.2/people/:
+ /api/1.2/people:
get:
description: List people.
operationId: people_list
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.2/people/{id}/:
+ /api/1.2/people/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.2/projects/:
+ /api/1.2/projects:
get:
description: List projects.
operationId: projects_list
$ref: '#/components/schemas/Project'
tags:
- projects
- /api/1.2/projects/{id}/:
+ /api/1.2/projects/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- projects
- /api/1.2/series/:
+ /api/1.2/series:
get:
description: List series.
operationId: series_list
$ref: '#/components/schemas/Series'
tags:
- series
- /api/1.2/series/{id}/:
+ /api/1.2/series/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- series
- /api/1.2/users/:
+ /api/1.2/users:
get:
description: List users.
operationId: users_list
$ref: '#/components/schemas/Error'
tags:
- users
- /api/1.2/users/{id}/:
+ /api/1.2/users/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Index'
tags:
- api
- /api/1.3/bundles/:
+ /api/1.3/bundles:
get:
description: List bundles.
operationId: bundles_list
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/1.3/bundles/{id}/:
+ /api/1.3/bundles/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- bundles
- /api/1.3/covers/:
+ /api/1.3/covers:
get:
description: List cover letters.
operationId: covers_list
$ref: '#/components/schemas/CoverList'
tags:
- covers
- /api/1.3/covers/{id}/:
+ /api/1.3/covers/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- covers
- /api/1.3/covers/{id}/comments/:
+ /api/1.3/covers/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.3/covers/{cover_id}/comments/{comment_id}/:
+ /api/1.3/covers/{cover_id}/comments/{comment_id}:
parameters:
- in: path
name: cover_id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.3/events/:
+ /api/1.3/events:
get:
description: List events.
operationId: events_list
patch-comment-created: '#/components/schemas/EventPatchCommentCreated'
tags:
- events
- /api/1.3/patches/:
+ /api/1.3/patches:
get:
description: List patches.
operationId: patches_list
$ref: '#/components/schemas/PatchList'
tags:
- patches
- /api/1.3/patches/{id}/:
+ /api/1.3/patches/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- patches
- /api/1.3/patches/{id}/comments/:
+ /api/1.3/patches/{id}/comments:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.3/patches/{patch_id}/comments/{comment_id}/:
+ /api/1.3/patches/{patch_id}/comments/{comment_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- comments
- /api/1.3/patches/{patch_id}/checks/:
+ /api/1.3/patches/{patch_id}/checks:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.3/patches/{patch_id}/checks/{check_id}/:
+ /api/1.3/patches/{patch_id}/checks/{check_id}:
parameters:
- in: path
name: patch_id
$ref: '#/components/schemas/Error'
tags:
- checks
- /api/1.3/people/:
+ /api/1.3/people:
get:
description: List people.
operationId: people_list
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.3/people/{id}/:
+ /api/1.3/people/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- people
- /api/1.3/projects/:
+ /api/1.3/projects:
get:
description: List projects.
operationId: projects_list
$ref: '#/components/schemas/Project'
tags:
- projects
- /api/1.3/projects/{id}/:
+ /api/1.3/projects/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- projects
- /api/1.3/series/:
+ /api/1.3/series:
get:
description: List series.
operationId: series_list
$ref: '#/components/schemas/Series'
tags:
- series
- /api/1.3/series/{id}/:
+ /api/1.3/series/{id}:
parameters:
- in: path
name: id
$ref: '#/components/schemas/Error'
tags:
- series
- /api/1.3/users/:
+ /api/1.3/users:
get:
description: List users.
operationId: users_list
$ref: '#/components/schemas/Error'
tags:
- users
- /api/1.3/users/{id}/:
+ /api/1.3/users/{id}:
parameters:
- in: path
name: id
if response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED:
return
+ # FIXME: this shouldn't matter
+ request.path = request.path.rstrip('/')
+
spec = _load_spec(resolve(path).kwargs.get('version'))
request = DjangoOpenAPIRequest(request)
response = DjangoOpenAPIResponse(response)