IOM supports "basic http authentication" only. Please configure your clients to use this authentication method. A very simple method to send REST requests on the command line can be realized using wget. The example also shows, how to configure this client to use "basic http authentication" (--auth-no-challenge).
wget -q -O- --auth-no-challenge --http-user=<user> --http-password='<password>' \ --method=get http://<hostname>/servlets/services/reservation/117
oms.RightDefDO
with ID = 124 and name "Reservation REST service") is assigned to the requesting user. The permission is a part of the class bakery.persistence.dataobject.configuration.common.RightDefDO
.Request data format | application/json | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Request related java object | n/a | ||||||||||||||||||||||||||
Request data example | No Content | ||||||||||||||||||||||||||
Response data format | application/json | ||||||||||||||||||||||||||
Response related java object | bakery.webservice.rest.v1.HttpResponse bakery.reservation.v2.ReservationResponse as "data" object | ||||||||||||||||||||||||||
Response Attributes |
| ||||||||||||||||||||||||||
Response data example | { "errors": [ ], "statusCode": 200, "exceptions": [ ], "data": { "validUntil": "2016-01-06 15:05:30", "resvId": 118, "items": [ { "id": "First-Test", "qty": 3, "state": "reserved" }, { "id": "First-Test", "qty": 2, "state": "reserved" } ] } } | ||||||||||||||||||||||||||
Response Code | 200 |