Skip to content

Commit 3db2131

Browse files
committed
Link to the newly published API docs
Adding these reference links should make the user experience more smooth, particularly when navigating both pulp-python and pulpcore docs. [noissue]
1 parent b7f5fe5 commit 3db2131

6 files changed

Lines changed: 44 additions & 6 deletions

File tree

docs/index.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ Community contributions are encouraged.
1515
* View and file issues in the `Redmine Tracker
1616
<https://pulp.plan.io/projects/pulp_python/issues>`_.
1717

18-
REST API
19-
--------
20-
21-
REST API documentation for this plugin can be found `here <restapi.html>`_
2218

2319
Table of Contents
2420
-----------------
@@ -28,6 +24,7 @@ Table of Contents
2824

2925
installation
3026
workflows/index
27+
restapi/index
3128
release-notes/3.0.z.rst
3229

3330

docs/installation.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
User Setup
22
==========
33

4-
Install pulp-python
5-
-------------------
4+
Ansible Installer (Recommended)
5+
-------------------------------
6+
7+
We recommend that you install `pulpcore` and `pulp-python` together using the `Ansible installer
8+
<https://github.com/pulp/ansible-pulp/blob/master/README.md>`_.
9+
10+
Pip Install
11+
-----------
612

713
This document assumes that you have
814
`installed pulpcore <https://docs.pulpproject.org/en/3.0/nightly/installation/instructions.html>`_

docs/restapi/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
REST API
2+
========
3+
4+
Pulpcore Reference: `pulpcore REST documentation <https://docs.pulpproject.org/en/3.0/nightly/restapi.html>`_.
5+
6+
Pulp Python Endpoints
7+
---------------------
8+
9+
Pulp Python Reference `pulp-python REST documentation <../restapi.html>`_

docs/workflows/publish-host.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Create a variable for convenience.::
2323

2424
$ export PUBLISHER_HREF=$(http $BASE_ADDR/pulp/api/v3/publishers/python/python/ | jq -r '.results[] | select(.name == "bar") | ._href')
2525

26+
Reference: `Python Publisher API Usage <../restapi.html#tag/publishers>`_
27+
2628

2729
Publish a repository with a publisher
2830
-------------------------------------
@@ -45,6 +47,8 @@ Create a variable for convenience.::
4547

4648
$ export PUBLICATION_HREF=$(http $BASE_ADDR/pulp/api/v3/publications/ | jq -r --arg PUBLISHER_HREF "$PUBLISHER_HREF" '.results[] | select(.publisher==$PUBLISHER_HREF) | ._href')
4749

50+
Reference: `Python Publish Task Usage <../restapi.html#operation/publishers_python_python_publish>`_
51+
4852
Host a Publication (Create a Distribution)
4953
--------------------------------------------
5054

@@ -61,6 +65,9 @@ Response::
6165
...
6266
}
6367

68+
Reference (pulpcore): `Distribution API Usage
69+
<https://docs.pulpproject.org/en/3.0/nightly/restapi.html#tag/distributions>`_
70+
6471
.. _using-distributions:
6572

6673
Use the newly created distribution

docs/workflows/sync.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ If you want to copy/paste your way through the guide, create an environment vari
2222

2323
$ export REPO_HREF=$(http $BASE_ADDR/pulp/api/v3/repositories/ | jq -r '.results[] | select(.name == "foo") | ._href')
2424

25+
Reference (pulpcore): `Repository API Usage
26+
<https://docs.pulpproject.org/en/3.0/nightly/restapi.html#tag/repositories>`_
27+
2528

2629
Create a Remote
2730
---------------
@@ -101,6 +104,9 @@ You can also use version specifiers to "exclude" certain versions of a project,
101104
},
102105
]'
103106

107+
Reference: `Python Remote Usage
108+
<https://pulp-python.readthedocs.io/en/latest/restapi.html#tag/remotes>`_
109+
104110
Sync repository foo with remote
105111
-------------------------------
106112

@@ -161,3 +167,6 @@ Response::
161167
"state": "completed",
162168
"worker": "/pulp/api/v3/workers/eaffe1be-111a-421d-a127-0b8fa7077cf7/"
163169
}
170+
171+
Reference: `Python sync
172+
<https://pulp-python.readthedocs.io/en/latest/restapi.html#operation/remotes_python_python_sync>`_

docs/workflows/upload.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Create a variable for convenience::
1919

2020
$ export REPO_HREF=$(http $BASE_ADDR/pulp/api/v3/repositories/ | jq -r '.results[] | select(.name == "foo") | ._href')
2121

22+
Reference (pulpcore): `Repository API Usage
23+
<https://docs.pulpproject.org/en/3.0/nightly/restapi.html#tag/repositories>`_
2224

2325
Upload a file to Pulp
2426
---------------------
@@ -35,6 +37,9 @@ Response::
3537
}
3638

3739

40+
Reference (pulpcore): `Artifact API Usage
41+
<https://docs.pulpproject.org/en/3.0/nightly/restapi.html#tag/artifacts>`_
42+
3843
Create content from an artifact
3944
-------------------------------
4045

@@ -57,9 +62,14 @@ Create a variable for convenience::
5762

5863
$ export CONTENT_HREF=$(http $BASE_ADDR/pulp/api/v3/content/python/packages/ | jq -r '.results[] | select(.filename == "shelf_reader-0.1-py2-none-any.whl") | ._href')
5964

65+
Reference: `Python Content API Usage <../restapi.html#tag/content>`_
66+
6067
Add content to a repository
6168
---------------------------
6269

6370
Once there is a content unit, it can be added and removed and from to repositories::
6471

6572
$ http POST $BASE_ADDR$REPO_HREF'versions/' add_content_units:="[\"$CONTENT_HREF\"]"
73+
74+
Reference (pulpcore): `Repository Version Creation API Usage
75+
<https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_create>`_

0 commit comments

Comments
 (0)