Skip to content

Commit 3bf4e19

Browse files
committed
Add basic documentation for API paths in README
1 parent 11d8935 commit 3bf4e19

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,27 @@ Default: `true`
214214
Type: bool
215215
Description: Run `puppet generate types` after updating an environment
216216
Default: `true`
217+
218+
## Usage
219+
220+
Webhook API provides following paths
221+
222+
### GET /health
223+
224+
Get health assessment about the Webhook API server
225+
226+
### GET /api/v1/queue
227+
228+
Get current queue status of the Webhook API server
229+
230+
### POST /api/v1/r10k/environment
231+
232+
Updates a given puppet environment, ie. `r10k deploy environment`. This only updates a specific environment governed by the branch name.
233+
234+
### POST /api/v1/r10k/module
235+
236+
Updates a puppet module, ie. `r10k deploy module`. The default behaviour of r10k is to update the module in all environments that have it. Module name defaults to the git repository name.
237+
238+
Available URL arguments (`?argument=value`):
239+
* branch_only - If set, this will only update the module in an environment set by the branch, as opposed to all environments. This is equivalent to the `--environment` r10k option.
240+
* module_name - Sometimes git repository and module name cannot have the same name due to arbitrary naming restrictions. This option forces the module name to be the given value instead of repository name.

0 commit comments

Comments
 (0)