ContentRepositoryProxyResource Resource

Resource for proxying requests to the Mesh instance of a Mesh Content.Repository.

DELETE /contentrepositories/{id}/proxy

DELETE request without extra path

Request Parameters
name type description
id path CR id
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
DELETE /contentrepositories/{id}/proxy
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...
                
              

GET /contentrepositories/{id}/proxy

GET request without extra path

Request Parameters
name type description
id path CR id
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
GET /contentrepositories/{id}/proxy
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

HEAD /contentrepositories/{id}/proxy

HEAD request without extra path

Request Parameters
name type description
id path CR id
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
HEAD /contentrepositories/{id}/proxy
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

OPTIONS /contentrepositories/{id}/proxy

OPTIONS request without extra path

Request Parameters
name type description
id path CR id
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
OPTIONS /contentrepositories/{id}/proxy
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

POST /contentrepositories/{id}/proxy

POST request without extra path

Request Parameters
name type description
id path CR id
Request Body
media type data type description
application/json object (JSON) request body as InputStream
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
POST /contentrepositories/{id}/proxy
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

PUT /contentrepositories/{id}/proxy

PUT request without extra path

Request Parameters
name type description
id path CR id
Request Body
media type data type description
application/json object (JSON) request body as InputStream
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
PUT /contentrepositories/{id}/proxy
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...
                
              

POST /contentrepositories/{id}/proxylogin

Perform a login with the credentials stored in the Content.Repository.

Request Parameters
name type description
id path CR id
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
POST /contentrepositories/{id}/proxylogin
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

DELETE /contentrepositories/{id}/proxy/{path}

DELETE request

Request Parameters
name type description constraints
id path CR id  
path path request path regex: .*
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
DELETE /contentrepositories/{id}/proxy/{path}
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...
                
              

GET /contentrepositories/{id}/proxy/{path}

GET request

Request Parameters
name type description constraints
id path CR id  
path path request path regex: .*
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
GET /contentrepositories/{id}/proxy/{path}
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

HEAD /contentrepositories/{id}/proxy/{path}

HEAD request

Request Parameters
name type description constraints
id path CR id  
path path request path regex: .*
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
HEAD /contentrepositories/{id}/proxy/{path}
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

OPTIONS /contentrepositories/{id}/proxy/{path}

OPTIONS request

Request Parameters
name type description constraints
id path CR id  
path path request path regex: .*
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
OPTIONS /contentrepositories/{id}/proxy/{path}
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

POST /contentrepositories/{id}/proxy/{path}

POST request

Request Parameters
name type description constraints
id path CR id  
path path request path regex: .*
Request Body
media type data type description
application/json object (JSON) request body as InputStream
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
POST /contentrepositories/{id}/proxy/{path}
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

PUT /contentrepositories/{id}/proxy/{path}

PUT request

Request Parameters
name type description constraints
id path CR id  
path path request path regex: .*
Request Body
media type data type description
application/json object (JSON) request body as InputStream
Response Codes
code condition
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
404 Content.Repository with given ID does not exist.
409 Content.Repository with given ID is not a Mesh Content.Repository or has invalid URL.
502 Accessing the Mesh instance is not possible.
Response Body
media type data type description
application/json object (JSON) response

Example

Request
PUT /contentrepositories/{id}/proxy/{path}
Content-Type: application/json
Accept: application/json

                
...
                
              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...