Description: Assign contents to extension repository by content ids
URL: http://{your-server-url}/api/v1/core/libraries/extensions/repositories/{repositoryGuid}/contents
Method: POST
Token Required: True
currentuserid: {switch to user id}
content-type: application/json or content-type: application/xml
token: {token}
Portal Administrator( modification on the global repository)
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryRequest
Parameter | Type | Nullable |
---|---|---|
Request.ContentIds | int[] | False |
Parameter | Type | Nullable | Description |
---|---|---|---|
returnrepositorycontent | bool | True | default value is false, set to true if would like to return repository content instead of repository object |
Example: http://{your-server-url}/api/v1/core/libraries/extensions/repositories/{repositoryGuid}/contents?
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library.LibraryResponse
Parameter | Type | Comment |
---|---|---|
Response.Repository | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Extensions.Repository[] | return RepositoryContent object if returnrepositorycontent set as true |
<LibraryRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Library" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ContentIds xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <a:int>123</a:int> </ContentIds> </LibraryRequest>
{ "ContentIds":[ 123 ] }
<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> </LibraryResponse>
{ "DebugMessage":"String", "Errors":[ { "Code":"String", "Message":"String", "StackTrace":"String" } ], "Status":1 }