Commit 9cb82c45 authored by Matija Obreza's avatar Matija Obreza

&LANGUAGE enum and acceptLanguage header documented

parent 69924b04
......@@ -49,6 +49,23 @@ parameters:
type: integer
required: false
default: 10
acceptLanguge:
name: Accept-Language
in: header
description: Tags to filter by
required: false
type: array
items:
type: string
enum: &LANGUAGE
- en
- fr
- es
- ar
- ru
- zh
default: en
tags:
- name: query
description: GLIS Query API about PGRFA
......@@ -72,6 +89,7 @@ paths:
parameters:
- $ref: '#/parameters/page'
- $ref: '#/parameters/perPage'
- $ref: '#/parameters/acceptLanguge'
- name: doi
in: query
description: >-
......@@ -419,21 +437,7 @@ paths:
- application/json
- application/xml
parameters:
- name: Accept-Language
in: header
description: Tags to filter by
required: false
type: array
items:
type: string
enum:
- en
- fr
- es
- ar
- ru
- zh
default: en
- $ref: '#/parameters/acceptLanguge'
responses:
'200':
description: successful operation
......@@ -474,13 +478,7 @@ definitions:
type: string
description: >-
ISO-639-1 two-letter language code
enum:
- en
- fr
- es
- ar
- ru
- zh
enum: *LANGUAGE
term:
type: string
description: Term
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment