Architecture Management Resource Links Collection REST API
1.0 SPECIFICATION DRAFT
Introduction
The Architecture Management Resource Link Creation URI {AMR Link Creation URI} is a URI obtained from a model resource's data (application/x-oslc-am-resource+xml). It specifies where a POST requests can be made to create new link resource from a model element to another CALM resource.
POST {AMR Link Creation URI}
Creates a new model element from the content body of the request. The Content-Type header MUST be specified. The server MAY support the creation of the element. The content body of the request MUST contain the full content required for an element of the specified type.
A service provider MUST support at least the following HTTP response status codes:
Status Code |
Response Content |
Response Headers |
Description |
200 OK |
Link content |
ETag: {Current ETag} Content-Type: application/x-oslc-am-resource-link+xml Location: {Link URI} |
The request was successful and the server has created a new AM resource link. |
400 Bad Request |
Error message |
|
This response can be returned when any of the parameters or content is not properly structured. |
415 Unsupported Media Type |
Error message |
|
The Content-Type header does not specify a valid content type. |
PUT {AMR Link Creation URI}
Not supported. The Service Provider MUST return a 405 Method Not Allowed response. The response MUST include an Allow header containing a list of valid methods for the requested resource.
DELETE {AMR Link Creation URI}
Not supported. The Service Provider MUST return a 405 Method Not Allowed response. The response MUST include an Allow header containing a list of valid methods for the requested resource.
Back to
Architecture Management REST API 1.0 Home
--
JimConallen - 01 Sep 2009
Topic revision: r5 - 14 Oct 2009 - 12:29:49 -
JimConallen