Start new transaction

Request:

POST https://example.com:9435/dm/editingsessions?rmps.context=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16 HTTP/1.1

Query Parameters
rmps.context=https://example.com:9435/dm/streams/16
Headers
X-ibm-rmps-internal: true

Response:

HTTP/1.1 200 OK

Headers
Server: Apache-Coyote/1.1
Location: https://example.com:9435/dm/editingsessions/330
Content-Type: text/plain;charset=UTF-8
Content-Length: 1040
Date: Thu, 27 Sep 2012 13:40:32 GMT
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:j.0="http://jazz.net/xmlns/rmps/editingsession/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <rdf:Description rdf:about="https://example.com:9435/dm/editingsessions/330">
    <j.0:owningUserUri rdf:resource="https://example.com:9435/jts/users/test"/>
    <j.0:projectUri rdf:resource="https://example.com:9435/dm/process/project-areas/_4k9iVfwdEeGIbrXzZZZ7PA"/>
    <j.0:streamUri rdf:resource="https://example.com:9435/dm/streams/16"/>
    <rdf:type rdf:resource="http://jazz.net/xmlns/rmps/editingsession/1.0/EditingSession"/>
    <j.0:state>ACTIVE</j.0:state>
    <j.0:supressChangeSetConfiguration rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</j.0:supressChangeSetConfiguration>
    <j.0:locking rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</j.0:locking>
    <j.0:indexable rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</j.0:indexable>
  </rdf:Description>
</rdf:RDF>

Set description on transaction

Request:

POST https://example.com:9435/dm/editingsessions/330?rmps.context=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16&streamUri=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16 HTTP/1.1

Query Parameters
rmps.context=https://example.com:9435/dm/streams/16
streamUri=https://example.com:9435/dm/streams/16
Headers
X-ibm-rmps-internal: true
{ "action" : "setDescription", "value" : "my transaction" }

Response:

HTTP/1.1 200 OK

Headers
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 27 Sep 2012 13:40:32 GMT

Create new resource uri

Request:

POST https://example.com:9435/dm/models?rmps.context=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16&streamUri=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16 HTTP/1.1

Query Parameters
rmps.context=https://example.com:9435/dm/streams/16
streamUri=https://example.com:9435/dm/streams/16
Headers
X-ibm-rmps-internal: true
{ "action" : "generateUri" }

Response:

HTTP/1.1 200 OK

Headers
Server: Apache-Coyote/1.1
Location: https://example.com:9435/dm/models/892
Content-Type: text/plain
Content-Length: 0
Date: Thu, 27 Sep 2012 13:40:33 GMT

PUT update to newly created resource URI

Request:

PUT https://example.com:9435/dm/models/892?rmps.context=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16&streamUri=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16 HTTP/1.1

Query Parameters
rmps.context=https://example.com:9435/dm/streams/16
streamUri=https://example.com:9435/dm/streams/16
Headers
X-ibm-rmps-internal: true
<https://example.com:9435/dm/models/892> <http://ibm.com/owl/library#authorName> "Douglas Adams"^^<http://www.w3.org/2001/XMLSchema#string> . 
<https://example.com:9435/dm/models/892> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://jazz.net/ns/dm/core#Document> . 
<https://example.com:9435/dm/models/892> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://ibm.com/owl/library#Author> . 
<https://example.com:9435/dm/models/892> <http://purl.org/dc/terms/description> "42"^^<http://www.w3.org/2001/XMLSchema#string> .

Response:

HTTP/1.1 200 OK

Headers
Server: Apache-Coyote/1.1
Content-Type: text/plain
Content-Length: 0
Date: Thu, 27 Sep 2012 13:40:33 GMT

Commit the transaction

Request:

POST https://example.com:9435/dm/editingsessions/330?rmps.context=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16&streamUri=https%3A%2F%2Frsa-jade2k8.ottawa.ibm.com%3A9435%2Fdm%2Fstreams%2F16 HTTP/1.1

Query Parameters
rmps.context=https://example.com:9435/dm/streams/16
streamUri=https://example.com:9435/dm/streams/16
Headers
X-ibm-rmps-internal: true
{ "action" : "commit" }

Response:

HTTP/1.1 200 OK

Headers
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 27 Sep 2012 13:40:36 GMT