Non-enabled repository types make it into the apipie help-text
Description of problem:
Non-enabled repository types make it into the apipie help-text, such as "deb" or "python".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. hammer repository create --help
--content-type ENUM Type of repo
Possible value(s): 'ansible_collection', 'deb', 'docker', 'file', 'ostree',
Don't include types not supported by the smart proxy.
The issue is due to how the apipie cache is generated statically. Since it's not generated with a running Foreman, we cannot use the enabled repository types.
For a medium-term fix, we could remove the repo types completely from the apipie definition and add in an endpoint to check the enabled content types.
For a longer-term fix, we could switch to having the apipie cache generating dynamically in Foreman. That will require more consideration.