theforeman / foreman-documentation

Documentation for the Foreman Project and its ecosystem
https://docs.theforeman.org
Creative Commons Attribution Share Alike 4.0 International
22 stars 95 forks source link

Modularize Foreman API guide #3353

Closed maximiliankolb closed 1 week ago

maximiliankolb commented 1 month ago

What changes are you introducing?

Why are you introducing these changes? (Explanation, links to references, issues, etc.)

mostly to improve maintainability by splitting content into smaller modules. to align with existing content; help downstream integration; to prepare for the eventual merge with WebUI related procedures.

Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)

Checklists

Please cherry-pick my commits into:

github-actions[bot] commented 1 month ago

The PR preview for 40397d652c11a31f1a018cfa9e59745e60df446d is available at theforeman-foreman-documentation-preview-pr-3353.surge.sh

The following output files are affected by this PR:

show diff

show diff as HTML

Lennonka commented 1 month ago

Do we want to keep --request GET for curl commands?

I'd suggest to keep it for clarity because some endpoints can be accessed by using multiple methods and it's more descriptive to be explicit about the method in use even if it's the default one.

Lennonka commented 1 month ago

Do we want to use single or double quotes for quotes commands?

I'm assuming you mean inside the Python and Ruby code. Assuming they won't change the functionality (if they are semantically same), we might go with " (double quotes) because it looks like they are used more frequently in the code and are better for readability.

However, this requires a more in-depth research as to the semantics of the code IMHO. Perhaps even developer review.

maximiliankolb commented 2 weeks ago

Rebased to "master", resolved a merge conflict, and reverted a change "MB -> MiB".

maximiliankolb commented 1 week ago

Merged to "master" and cherry-picked to "3.13": 17f6cb784d..d657a19a31 3.13 -> 3.13

Thanks to everyone for their input. @apinnick @Lennonka @asteflova If you want to propose any follow-up changes, esp. to procedures about "applying errata" (we have a lot of these!), ping me. I could also open an upstream issue and look into this myself soon.