Skip to content
Snippets Groups Projects
Commit aa6a5700 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

fikset noen feil i dokumentasjonen, inkl. feil plassering av elementer

parent f0fd4630
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
"paths": { "paths": {
"/article/{dict_id}/{art_id}": { "/article/{dict_id}/{art_id}": {
"get": { "get": {
"summary": "Article lookup",
"description": "Returns an article with a specific numerical ID",
"parameters": [ "parameters": [
{ {
"name": "dict_id", "name": "dict_id",
...@@ -27,6 +29,7 @@ ...@@ -27,6 +29,7 @@
"name": "art_id", "name": "art_id",
"in": "path", "in": "path",
"required": true, "required": true,
"description": "The numerical ID of an article",
"schema": { "schema": {
"type": "integer" "type": "integer"
} }
...@@ -52,13 +55,13 @@ ...@@ -52,13 +55,13 @@
} }
}, },
"/article/{dict_id}/search": { "/article/{dict_id}/search": {
"summary": "Search for a word",
"description": "Search for words as an article lemmas, or words occurring in certain article elements. For instance, old norse _fljúga_ will match the article for modern Norwegian verb _fly_ (meaning to fly)",
"get": { "get": {
"summary": "Search for a word",
"description": "Search for words as an article lemmas, or words occurring in certain article elements. For instance, old norse _fljúga_ will match the article for modern Norwegian verb _fly_ (meaning to fly)",
"parameters": [ "parameters": [
{ {
"name": "dict_id", "name": "dict_id",
"description": "Dictionary to search, 'bob' for bokmål, 'nob' for nynorsk, 'bob,bob' for both", "description": "Dictionary to search, 'bob' for bokmål, 'nob' for nynorsk, 'bob,nob' for both",
"in": "path", "in": "path",
"required": true, "required": true,
"schema": { "schema": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment