This wiki is locked. Future workgroup activity and specification development must take place at our new wiki. For more information, see this blog post about the new governance model and this post about changes to the website.

Architecture Management Resource Links Collection REST API

1.0 SPECIFICATION DRAFT

Introduction

The Model Element Link Creation URI {ME Link Creation URI} is a URI obtained from a model resource's data (application/x-oslc-am-model-element+xml). It specifies where a POST requests can be made to create new link resource from a model element to another CALM resource.

POST {ME 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 sucessful and the server has create the new model resource.
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 content type that the server can create a model element for.

PUT {ME 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 {ME 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

Edit | Attach | Print version | History: r7 | r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r3 - 01 Sep 2009 - 21:27:50 - JimConallen
 
This site is powered by the TWiki collaboration platform Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use
Ideas, requests, problems regarding this site? Send feedback