Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 772 Bytes

Pacco.Services.Availability.rest

File metadata and controls

37 lines (29 loc) · 772 Bytes

@url = http://localhost:5001 @resourceId = 00000000-0000-0000-0000-000000000000 @customerId = 00000000-0000-0000-0000-000000000000 @dateTime = 2020-01-10 @tags = ["vehicle", "armor"]

### GET {{url}}/resources?tags={{tags}}&matchAllTags=false

### GET {{url}}/resources/{{resourceId}}

### POST {{url}}/resources Content-Type: application/json

{
"resourceId": "{{resourceId}}", "tags": {{tags}}

}

### POST {{url}}/resources/{{resourceId}}/reservations/{{dateTime}} Content-Type: application/json

{
"resourceId": "{{resourceId}}", "customerId": "{{customerId}}", "dateTime": "{{dateTime}}", "priority": 0

}

### DELETE {{url}}/resources/{{resourceId}}/reservations/{{dateTime}}

### DELETE {{url}}/resources/{{resourceId}}