Skip to content

Commit

Permalink
Add swagger spec for global labels method (and fix up some descriptions)
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed May 8, 2020
1 parent a1ea600 commit 8459c37
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,47 @@
]
}
},
"/label": {
"get": {
"summary": "List of labels for the requested concept",
"parameters": [
{
"name": "uri",
"in": "query",
"description": "URI of the concept whose labels to return",
"required": true,
"type": "string"
},
{
"name": "lang",
"in": "query",
"description": "search language, e.g. \"en\" or \"fi\"",
"required": false,
"type": "string"
}
],
"produces": [
"application/ld+json"
],
"responses": {
"200": {
"description": "labels for the requested concept",
"schema": {
"$ref": "#/definitions/LabelsAndUri"
}
},
"304": {
"description": "the resource was not modified, so there is no need to retransmit the requested resources"
},
"404": {
"description": "no concept could be found with the requested URI"
}
},
"tags": [
"Global methods"
]
}
},
"/data": {
"get": {
"summary": "RDF data of the requested concept",
Expand Down Expand Up @@ -717,7 +758,7 @@
{
"name": "uri",
"in": "query",
"description": "URI of the concept whose label to return",
"description": "URI of the concept whose labels to return",
"required": true,
"type": "string"
},
Expand All @@ -734,7 +775,7 @@
],
"responses": {
"200": {
"description": "preferred label for the requested concept",
"description": "labels for the requested concept",
"schema": {
"$ref": "#/definitions/LabelsAndUri"
}
Expand Down Expand Up @@ -2232,4 +2273,4 @@
]
}
}
}
}

0 comments on commit 8459c37

Please sign in to comment.