RetrieveExtensionRepositories

 

LibraryService / RetrieveExtensionRepositories

 

Description: Retrieve global and own account's extension repositories

URL: http://{your-server-url}/api/v1/core/libraries/extensions/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
rpp int True records per page, default = 50, max = 500
guids Guid True extension repository guids, comma separated values, eg. guids=xxxx-xxxx-xxxx-xxxx,xxxx-xxxx-xxxx-xxxx
assetdsguids int True asset datasource guids, comma separated values, eg. assetdatasourceguids=xxxx-xxxx-xxxx-xxxx,xxxx-xxxx-xxxx-xxxx
extensionguids Guid True extension guids, comma separated values, eg. extensionguids=xxxx-xxxx-xxxx-xxxx,xxxx-xxxx-xxxx-xxxx
type string True repository type, account or global
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

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


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
}