List Editorial Role Referenced By Repositories

get

/content/management/api/v1.1/editorialRoles/{roleId}/referencedByRepositories

List repositories referenced by a custom editorial role.

Request

Path Parameters
Query Parameters
  • This parameter accepts a non negative integer and is used to control the size of the result.
    Default Value: 50
  • This parameter accepts a non negative integer and is used to control the start index of the result.
    Default Value: 0
  • This parameter accepts a boolean flag. If specified as true, then the returned result must include the total result count.
    Default Value: false
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : EditorialRoleReferencedByRepositories
Type: object
EditorialRoleReferencedByRepositories
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : AggregationResult
Type: object
Show Source
Nested Schema : RepositoryInEditorialRole
Type: object
Repository in Editorial Role Response
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to list repositories referenced by a custom editorial role by submitting a GET request using cURL.

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/editorialRoles/{roleId}/referencedByRepositories'

Example

/content/management/api/v1.1/editorialRoles/76F2903A0C8E48BCA222E68264BE1E05/referencedByRepositories?offset=0&limit=10&totalResults=true

This lists first set of 10 repositories referenced by a custom editorial roles with id 76F2903A0C8E48BCA222E68264BE1E05, sorted by repository name ascending. Here \"referenced by\" means the editorial role is assigned to those repositories.

Response Body

{
	    "hasMore": false,
	    "offset": 0,
	    "count": 2,
	    "limit": 2,
	    "totalResults": 2,
	    "items": [
	        {
	            "id": "48040240881C40749E10F57A060D8AB4",
	            "name": "Repo1",
	            "isUsed": false,
	            "links": [
	                {
	                    "href": "http://<hostname>/content/management/api/v1.1/repositories/48040240881C40749E10F57A060D8AB4",
	                    "rel": "self",
	                    "method": "GET",
	                    "mediaType": "application/json"
	                }
	            ]
	        },
	        {
	            "id": "7F289D0F4FD44C0382A83EFD44A355C0",
	            "name": "Repo2",
	            "isUsed": true,
	            "links": [
	                {
	                    "href": "http://<hostname>/content/management/api/v1.1/repositories/7F289D0F4FD44C0382A83EFD44A355C0",
	                    "rel": "self",
	                    "method": "GET",
	                    "mediaType": "application/json"
	                }
	            ]
	        }
	    ],
	    "links": [
	        {
	            "href": "http://<hostname>/content/management/api/v1.1/editorialRoles/76F2903A0C8E48BCA222E68264BE1E05/referencedByRepositories?limit=10&totalResults=true&offset=0",
	            "rel": "self",
	            "method": "GET",
	            "mediaType": "application/json"
	        },
	        {
	            "href": "http://<hostname>/content/management/api/v1.1/editorialRoles/76F2903A0C8E48BCA222E68264BE1E05/referencedByRepositories?limit=10&totalResults=true&offset=0",
	            "rel": "canonical",
	            "method": "GET",
	            "mediaType": "application/json"
	        },
	        {
	            "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/editorialRoles/76F2903A0C8E48BCA222E68264BE1E05/referencedByRepositories",
	            "rel": "describedby",
	            "method": "GET",
	            "mediaType": "application/json"
	        },
	        {
	            "href": "http://<hostname>/content/management/api/v1.1/editorialRoles/76F2903A0C8E48BCA222E68264BE1E05/referencedByRepositories?limit=10&totalResults=true&offset=0",
	            "rel": "first",
	            "method": "GET",
	            "mediaType": "application/json"
	        },
	        {
	            "href": "http://<hostname>/content/management/api/v1.1/editorialRoles/76F2903A0C8E48BCA222E68264BE1E05/referencedByRepositories?limit=10&totalResults=true&offset=0",
	            "rel": "last",
	            "method": "GET",
	            "mediaType": "application/json"
	        }
	    ]
      }
Back to Top