RetrieveExtensionRepositoriesByExtensionGuid

 

LibraryService / RetrieveExtensionRepositoriesByExtensionGuid

 

Description: Retrieve extension repositories by extension's guid

URL: http://{your-server-url}/api/v1/core/libraries/extensions/{ExtensionGuid}/repositories

Method: GET

Token Required: True


Request Headers:
content-type: application/json or content-type: application/xml
token: {token}
currentuserid: {switch to user id}
Request Query Parameters:
Parameter Type Nullable Description
assetdsguids int True asset datasource guids, comma separated values, eg. assetdatasourceguids=xxxx-xxxx-xxxx-xxxx,xxxx-xxxx-xxxx-xxxx
type string True repository type, account or global
guids Guid True extension repository guids, comma separated values, eg. guids=xxxx-xxxx-xxxx-xxxx,xxxx-xxxx-xxxx-xxxx
includecontent bool True default value is true, set it to false if does not need the content and it could enhance the performance
page int True page number
rpp int True records per page, default = 50, max = 500

Example: http://{your-server-url}/api/v1/core/libraries/extensions/{ExtensionGuid}/repositories?assetdsguids=100&type=string&page=100


Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryResponse

Parameter Type
Response.Rpp int
Response.ExtensionRepositories Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Extensions.Repository[]
Response.CurrentPage int
Response.TotalPages int

The following is an example response Xml body:
<LibraryResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
  <CurrentPage>123</CurrentPage>
  <Rpp>123</Rpp>
  <TotalPages>123</TotalPages>
</LibraryResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"CurrentPage":123,
	"Rpp":123,
	"TotalPages":123
}