GET SUT Reservation ID Method

This method returns a single reservation by ID.

Syntax:

GET /api/sut_reservation/<id>

Curl

$> curl 'http://localhost:8080/api/sut_reservation/59081e9144455345403d0000' -H 'Authorization: Basic YWRtaW46YWRtaW4='

Raw Request

GET /api/sut_reservation/59081e9144455345403d0000 HTTP/1.1

Host: localhost:8080

Authorization: Basic YWRtaW46YWRtaW4=

Read Keys

Parameter Type
_id Id
created_at Datetime
updated_at Datetime
start_time DateTime
end_time DateTime
user_id Id
sut_id Id
listen_port Integer

Response Body

{

"_id": "59081e9144455345403d0000",

"created_at": "2017-05-02T05:52:17.861Z",

"updated_at": "2017-05-02T05:52:20.275Z",

"start_time": "2017-05-02T05:45:00+00:00",

"end_time": "2017-05-02T06:00:00+00:00",

"user_id": "590780914445534540190000",

"sut_id": "58c38f5d444553252cce0000",

"listen_port": 5903

}

 

This topic was last updated on 2月 01, 2019, at 11:13:23 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant