-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
31 lines (21 loc) · 1011 Bytes
/
requests.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
### Create Object
POST http://localhost:8081/objects/create
> {%
client.test("Object created successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
client.assert(response.headers.valueOf("Location") != null, "No location returned in the response")
});
%}
### Create Subject (not yet necessary)
POST http://localhost:8081/subjects/create
### Create Right[type:Ownership] by the first transfer
POST http://localhost:8081/objects/000000000000001/createOwnership/000000000000001
### Transfer Right[type:Ownership] 1 > 2
POST http://localhost:8081/objects/000000000000001/transferOwnership/from/000000000000001/to/000000000000002
### Transfer Right[type:Ownership] 2 > 1
POST http://localhost:8081/objects/000000000000001/transferOwnership/from/000000000000002/to/000000000000001
### Query LADM: Get object state #1
GET http://localhost:8082/objects/000000000000001
### Query Identifiers: Get latest identifiers used
GET http://localhost:8082/identifiers
###