fix: update OpenAPI externalDocs URL

fixes https://github.com/PostgREST/postgrest/issues/3091
This commit is contained in:
Salim B
2024-07-11 15:07:14 +02:00
committed by Wolfgang Walther
parent 6be59066df
commit 1452720be6
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -402,7 +402,7 @@ postgrestSpec (prettyVersion, docsVersion) rels pds ti (s, h, p, b) sd allowSecu
& description ?~ fromMaybe "This is a dynamic API generated by PostgREST" dDesc)
& externalDocs ?~ ((mempty :: ExternalDocs)
& description ?~ "PostgREST Documentation"
& url .~ URL ("https://postgrest.org/en/" <> docsVersion <> "/api.html"))
& url .~ URL ("https://postgrest.org/en/" <> docsVersion <> "/references/api.html"))
& host .~ h'
& definitions .~ fromList (makeTableDef rels <$> ti)
& parameters .~ fromList (makeParamDefs ti)