A self-hosted dashboard that puts all your feeds in one place
Go aggregatordashboarddockerfeed-readergohomelabhomepagemonitoringredditrssrss-readerself-hostedstartpageyoutube
Update docs
Svilen Markovbd5cacd14aee
diff --git a/docs/custom-api.md b/docs/custom-api.mdindex cd88efa..566aa58 100644--- a/docs/custom-api.md+++ b/docs/custom-api.md@@ -366,15 +366,16 @@ In some instances, you may need to make two consecutive API calls, where you use- type: custom-apiurl: https://api.example.com/get-id-of-somethingtemplate: |+ {{ $theID := .JSON.String "id" }}+{{- $theID := .JSON.String "id"$something := newRequest (concat "https://api.example.com/something/" $theID)| withParameter "key" "value"| withHeader "Authorization" "Bearer token"| getResponse}}- {{ $something.String "title" }}+ {{ $something.JSON.String "title" }}```Here, `$theID` gets retrieved from the result of the first API call and used in the second API call. The `newRequest` function creates a new request, and the `getResponse` function executes it. You can also use `withParameter` and `withHeader` to optionally add parameters and headers to the request.