Skip to content

Commit

Permalink
Use generic example password (#3336)
Browse files Browse the repository at this point in the history
* Use one argument per line
  • Loading branch information
maximiliankolb authored Oct 2, 2024
1 parent f391481 commit 2a942ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ endif::[]
+
[options="nowrap", subs="+quotes,attributes"]
----
$ curl --insecure --user admin:redhat \
$ curl \
--insecure \
--user _My_User_Name_:__My_Password__ \
--request GET \
--config https://_{foreman-example-com}_/api/report_templates \
| json_reformat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,22 @@ model: ReportTemplate
+
[options="nowrap", subs="+quotes,attributes"]
----
$ curl --insecure --user admin:redhat \
--data @_Example_Template_.json --header "Content-Type:application/json" \
--request POST --config https://_{foreman-example-com}_/api/report_templates/import
$ curl \
--insecure \
--user _My_User_Name_:__My_Password__ \
--data @_Example_Template_.json \
--header "Content-Type:application/json" \
--request POST \
--config https://_{foreman-example-com}_/api/report_templates/import
----
+
. Use the following request to retrieve a list of report templates and validate that you can view the template in {Project}:
+
[options="nowrap", subs="+quotes,attributes"]
----
$ curl --insecure --user admin:redhat \
--request GET --config https://_{foreman-example-com}_/api/report_templates | json_reformat
$ curl \
--insecure \
--user _My_User_Name_:__My_Password__ \
--request GET \
--config https://_{foreman-example-com}_/api/report_templates | json_reformat
----

0 comments on commit 2a942ec

Please sign in to comment.