@@ -1713,12 +1713,12 @@ Remote Repository listing
1713
1713
1714
1714
.. code-tab :: bash
1715
1715
1716
- $ curl -H "Authorization: Token <token>" https://readthedocs.org/api/v3/remote/repositories/?expand=project,organization
1716
+ $ curl -H "Authorization: Token <token>" https://readthedocs.org/api/v3/remote/repositories/?expand=projects,remote_organization
1717
1717
1718
1718
.. code-tab :: python
1719
1719
1720
1720
import requests
1721
- URL = 'https://readthedocs.org/api/v3/remote/repositories/?expand=project,organization '
1721
+ URL = 'https://readthedocs.org/api/v3/remote/repositories/?expand=projects,remote_organization '
1722
1722
TOKEN = '<token>'
1723
1723
HEADERS = {'Authorization': f'token {TOKEN}'}
1724
1724
response = requests.get(URL, headers=HEADERS)
@@ -1730,11 +1730,11 @@ Remote Repository listing
1730
1730
1731
1731
{
1732
1732
"count": 20,
1733
- "next": "api/v3/remote/repositories/?expand=project,organization &limit=10&offset=10",
1733
+ "next": "api/v3/remote/repositories/?expand=projects,remote_organization &limit=10&offset=10",
1734
1734
"previous": null,
1735
1735
"results": [
1736
1736
{
1737
- "organization ": {
1737
+ "remote_organization ": {
1738
1738
"avatar_url": "https://avatars.githubusercontent.com/u/12345?v=4",
1739
1739
"created": "2019-04-29T10:00:00Z",
1740
1740
"modified": "2019-04-29T12:00:00Z",
@@ -1744,7 +1744,7 @@ Remote Repository listing
1744
1744
"url": "https://github.com/organization",
1745
1745
"vcs_provider": "github"
1746
1746
},
1747
- "project": {
1747
+ "project": [ {
1748
1748
"id": 12345,
1749
1749
"name": "project",
1750
1750
"slug": "project",
@@ -1787,7 +1787,7 @@ Remote Repository listing
1787
1787
"redirects": "/api/v3/projects/project/redirects/",
1788
1788
"translations": "/api/v3/projects/project/translations/"
1789
1789
}
1790
- }
1790
+ }],
1791
1791
"avatar_url": "https://avatars3.githubusercontent.com/u/test-organization?v=4",
1792
1792
"clone_url": "https://github.com/organization/project.git",
1793
1793
"created": "2019-04-29T10:00:00Z",
@@ -1814,7 +1814,7 @@ Remote Repository listing
1814
1814
:query string vcs_provider: return remote repositories for specific vcs provider (``github ``, ``gitlab `` or ``bitbucket ``)
1815
1815
:query string organization: return remote repositories for specific remote organization (using remote organization ``slug ``)
1816
1816
:query string expand: allows to add/expand some extra fields in the response.
1817
- Allowed values are ``project `` and ``organization ``.
1817
+ Allowed values are ``projects `` and ``remote_organization ``.
1818
1818
Multiple fields can be passed separated by commas.
1819
1819
1820
1820
:requestheader Authorization: token to authenticate.
0 commit comments