-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite of snip_managing-packages-api.adoc #3444
base: master
Are you sure you want to change the base?
Rewrite of snip_managing-packages-api.adoc #3444
Conversation
The PR preview for 7c11135 is available at theforeman-foreman-documentation-preview-pr-3444.surge.sh The following output files are affected by this PR: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Converting the steps to a description of the request data is nice!
I suggest to have something as follows:
.API procedure
. Create your API request body:
+
...
...
. Send your API request to {Project}:
+
...
...
Having a sentence about the API above the "API procedure" title looks off to me.
|
||
.Verification | ||
* In the {ProjectWebUI}, navigate to *Monitor* > *Jobs* and see the report of the scheduled or completed remote execution job to {PackageAction} the packages on the selected hosts. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of nitpicks, otherwise looking good
@@ -1,67 +1,69 @@ | |||
Create a body of the API request in the JSON format by following the instructions below. | |||
Supply your API request in the JSON format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supply your API request in the JSON format. |
|
||
* Specify your API request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Specify your API request: | |
. Supply the API request body in the JSON format: |
The API procedure contains two steps. Therefore, numbered list should be used. Also, this step defines the body. The actual API request is in the second step.
* If you omit this field, it defaults to `"static_query"`. | ||
-- | ||
|
||
* Send a `POST` request with the created body to the `/api/job_invocations` endpoint of your {ProjectServer} and see a formatted response: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Send a `POST` request with the created body to the `/api/job_invocations` endpoint of your {ProjectServer} and see a formatted response: | |
. Send a `POST` request with the created body to the `/api/job_invocations` endpoint of your {ProjectServer} and see a formatted response: |
What changes are you introducing?
Rewrite of the snip_managing-packages-api.adoc snippet.
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
https://issues.redhat.com/browse/SAT-28719
Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
Checklists
Please cherry-pick my commits into: