TechDocs: Make requestUrl and storageUrl optional configs by using discovery APIs

closes #3715

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Parth Shandilya
2021-01-19 23:46:48 +01:00
committed by Himanshu Mishra
parent 17b87a9305
commit e44925723e
18 changed files with 154 additions and 55 deletions
+2 -2
View File
@@ -13,12 +13,12 @@ configuration options for TechDocs.
# File: app-config.yaml
techdocs:
# TechDocs makes API calls to techdocs-backend using this URL. e.g. get docs of an entity, get metadata, etc.
# TechDocs makes API calls to techdocs-backend using this URL. e.g. get docs of an entity, get metadata, etc. (Optional)
requestUrl: http://localhost:7000/api/techdocs
# Just another route in techdocs-backend where TechDocs requests the static files from. This URL uses an HTTP middleware
# to serve files from either a local directory or an External storage provider.
# to serve files from either a local directory or an External storage provider. (Optional)
storageUrl: http://localhost:7000/api/techdocs/static/docs