All REST API examples below use httpie to perform the requests.
httpie commands below assume that the user executing the commands has a
in the home directory. The
.netrc should have the following configuration:
machine localhost login admin password password
If you configured the
admin user with a different password, adjust the configuration
accordingly. If you prefer to specify the username and password with each request, please see
httpie documentation on how to do that.
This documentation makes use of the jq library to parse the json received from requests, in order to get the unique urls generated when objects are created. To follow this documentation as-is please install the jq library with:
$ sudo dnf install jq
- Create, Sync and Publish a Repository
- Upload and Manage Content
- Get content from Pulp
- Copy RPM content between repositories