Skip to content

Commit

Permalink
add example, because it's hard to read the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 2, 2025
1 parent b4ef843 commit 9ccccf1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion raddb/mods-available/rest
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,18 @@ rest {
# Additional HTTP headers may be specified with control:REST-HTTP-Header.
# The values of those attributes should be in the format:
#
# control:REST-HTTP-Header := "<HTTP attribute>: <value>"
# control:REST-HTTP-Header := "<HTTP attribute>: <value>"
#
# You should set this attribute before calling the rest module,
# via something like the following example. Note that you MUST
# update the HTTP attribute and key value to whatever is needed on
# your local system. The values given in this example are likely
# to not work for your system.
#
# update control {
# &REST-HTTP-Header := "x-api-key: abcdefsupersecret"
# }
# rest
#
# The control:REST-HTTP-Header attributes will be consumed
# (i.e. deleted) after each call to the rest module, and each
Expand Down

0 comments on commit 9ccccf1

Please sign in to comment.