Skip to content

Commit

Permalink
Update docs to use UUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
goosemania committed Mar 26, 2019
1 parent 98d3b71 commit b4d8d0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions docs/workflows/create_sync_publish.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Create a repository ``foo``
.. code:: json
{
"_href": "/pulp/api/v3/repositories/1/",
"_href": "/pulp/api/v3/repositories/5eeabc0b-3b86-4264-bb3a-5889530a6f5b/",
...
}
Expand All @@ -26,7 +26,7 @@ Create a new remote ``bar``
.. code:: json
{
"_href": "/pulp/api/v3/remotes/rpm/rpm/1/",
"_href": "/pulp/api/v3/remotes/rpm/rpm/378711cd-1bee-4adc-8d9b-fe3bceaba39f/",
...
}
Expand All @@ -45,10 +45,10 @@ Look at the new Repository Version created
.. code:: json
{
"_added_href": "/pulp/api/v3/repositories/1/versions/1/added_content/",
"_content_href": "/pulp/api/v3/repositories/1/versions/1/content/",
"_href": "/pulp/api/v3/repositories/1/versions/1/",
"_removed_href": "/pulp/api/v3/repositories/1/versions/1/removed_content/",
"_added_href": "/pulp/api/v3/repositories/5eeabc0b-3b86-4264-bb3a-5889530a6f5b/versions/1/added_content/",
"_content_href": "/pulp/api/v3/repositories/5eeabc0b-3b86-4264-bb3a-5889530a6f5b/versions/1/content/",
"_href": "/pulp/api/v3/repositories/5eeabc0b-3b86-4264-bb3a-5889530a6f5b/versions/1/",
"_removed_href": "/pulp/api/v3/repositories/5eeabc0b-3b86-4264-bb3a-5889530a6f5b/versions/1/removed_content/",
"content_summary": {
"package": 35,
"update": 4
Expand All @@ -66,7 +66,7 @@ Create a ``rpm`` Publisher
.. code:: json
{
"_href": "/pulp/api/v3/publishers/rpm/rpm/1/",
"_href": "/pulp/api/v3/publishers/rpm/rpm/72f01cf0-3ab6-486c-bd76-38fdb3e295d4/",
...
}
Expand Down Expand Up @@ -98,7 +98,7 @@ Create a Distribution for the Publication
.. code:: json
{
"_href": "/pulp/api/v3/distributions/1/",
"_href": "/pulp/api/v3/distributions/8f394d20-f6fb-49dd-af0e-778225d79442/",
...
}
10 changes: 5 additions & 5 deletions docs/workflows/upload.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Create an Artifact by uploading the file to Pulp.
.. code:: json
{
"_href": "/pulp/api/v3/artifacts/1/",
"_href": "/pulp/api/v3/artifacts/d1dd56aa-c236-414a-894f-b3d9334d2e73/",
...
}
Expand All @@ -24,13 +24,13 @@ Create ``rpm`` content from an Artifact

Create a content unit and point it to your artifact

``$ http POST http://localhost:8000/pulp/api/v3/content/rpm/packages/ relative_path=foo.rpm _artifact="/pulp/api/v3/artifacts/1/" filename=foo-4.1-1.noarch.rpm``
``$ http POST http://localhost:8000/pulp/api/v3/content/rpm/packages/ relative_path=foo.rpm _artifact="/pulp/api/v3/artifacts/d1dd56aa-c236-414a-894f-b3d9334d2e73/" filename=foo-4.1-1.noarch.rpm``

.. code:: json
{
"_href": "/pulp/api/v3/content/rpm/packages/36/",
"_artifact": "/pulp/api/v3/artifacts/1/",
"_href": "/pulp/api/v3/content/rpm/packages/2df123b2-0d38-4a43-9b21-a3e830ea1324/",
"_artifact": "/pulp/api/v3/artifacts/d1dd56aa-c236-414a-894f-b3d9334d2e73/",
"relative_path": "foo.rpm",
}
Expand All @@ -49,4 +49,4 @@ One shot upload
You can use one shot uploader to upload one rpm and optionally create new repository version with rpm you uploaded.
With this call you can substitute previous two (or three) steps (create artifact, content from artifact and optionally add content to repo).

``http --form POST http://localhost:8000/pulp/api/v3/rpm/upload/ file@./foo-1.0-1.noarch.rpm repository=/pulp/api/v3/repositories/1/``
``http --form POST http://localhost:8000/pulp/api/v3/rpm/upload/ file@./foo-1.0-1.noarch.rpm repository=${REPO_HREF}``

0 comments on commit b4d8d0e

Please sign in to comment.