From 9d3ef9fe052ed29bd67566754cb28662bd122234 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 Apr 2018 14:39:52 +0200 Subject: Use ISO 639 for languages --- support/doc/api/openapi.yaml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'support/doc') diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 0729ac8ec..10f60175d 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -82,9 +82,9 @@ paths: get: tags: - Feeds - consumes: - - application/json produces: + - application/atom+xml + - application/rss+xml - application/json parameters: - name: format @@ -107,9 +107,6 @@ paths: responses: '200': description: successful operation - content: - application/json: - application/xml: /jobs: get: security: @@ -660,7 +657,7 @@ paths: description: 'Video licence' - name: language in: formData - type: number + type: string description: 'Video language' - name: description in: formData @@ -804,7 +801,7 @@ paths: description: 'Video licence' - name: language in: formData - type: number + type: string description: 'Video language' - name: description in: formData @@ -1245,12 +1242,18 @@ paths: '204': description: successful operation definitions: - VideoConstant: + VideoConstantNumber: properties: id: type: number label: type: string + VideoConstantString: + properties: + id: + type: string + label: + type: string VideoPrivacy: type: string enum: [Public, Unlisted, Private] @@ -1267,11 +1270,11 @@ definitions: updatedAt: type: string category: - $ref: "#/definitions/VideoConstant" + $ref: "#/definitions/VideoConstantNumber" licence: - $ref: "#/definitions/VideoConstant" + $ref: "#/definitions/VideoConstantNumber" language: - $ref: "#/definitions/VideoConstant" + $ref: "#/definitions/VideoConstantString" privacy: $ref: "#/definitions/VideoPrivacy" description: -- cgit v1.2.3