From d417afd591ee83761c755e05159f7df68943416d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no> Date: Mon, 21 Sep 2020 15:12:09 +0200 Subject: [PATCH] refs meta#150 --- api_static/api/swagger.json | 6 +++--- aws/beta.ordbok.uib.no_stack.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api_static/api/swagger.json b/api_static/api/swagger.json index 2e31b9f8..6fbab713 100644 --- a/api_static/api/swagger.json +++ b/api_static/api/swagger.json @@ -11,7 +11,7 @@ } ], "paths": { - "/article/{dict_id}/{art_id}": { + "/dict/{dict_id}/article/{art_id}": { "get": { "summary": "Article lookup", "description": "Returns an article with a specific numeric ID", @@ -56,7 +56,7 @@ } } }, - "/article/{dict_id}/search": { + "/dict/{dict_id}/article/search": { "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)", @@ -99,7 +99,7 @@ } } }, - "/article/{dict_id}/suggest": { + "/dict/{dict_id}/article/suggest": { "get": { "summary": "Get autocomplete suggestions for a prefix", "description": "Returns articles for words that begin with the prefix specified in query string 'q'", diff --git a/aws/beta.ordbok.uib.no_stack.yaml b/aws/beta.ordbok.uib.no_stack.yaml index e417fba1..3c1746e7 100644 --- a/aws/beta.ordbok.uib.no_stack.yaml +++ b/aws/beta.ordbok.uib.no_stack.yaml @@ -174,7 +174,7 @@ Resources: Forward: none ViewerProtocolPolicy: redirect-to-https CacheBehaviors: - - PathPattern: "/api/article/*" + - PathPattern: "/api/dict/*" AllowedMethods: - HEAD - DELETE -- GitLab