TraveltimeApi Resource

GET /api/v1/traveltime/api

Request Parameters
name type description
userid query
Response Body
media type data type description
application/json TravelTimeApiInfo (JSON)
application/xml;charset=UTF-8 object

Example

Request
GET /api/v1/traveltime/api
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "enabled" : true
}
                
              

POST /api/v1/traveltime/batch

Request Parameters
name type description
userid query
Request Body
media type data type
application/json TravelTimeRecordingBatchEntryList (JSON)
application/xml;charset=UTF-8 object

Example

Request
POST /api/v1/traveltime/batch
Content-Type: application/json

                
{
  "entries" : [ {
    "year" : 12345,
    "month" : 12345,
    "day" : 12345,
    "hour" : 12345,
    "minute" : 12345,
    "second" : 12345,
    "hvid" : 12345,
    "todoType" : "PROJECT",
    "remark" : "...",
    "carId" : 12345,
    "plateNumber" : "...",
    "mileage" : 12345,
    "startOfTravel" : true,
    "dailyAllowanceId" : 12345
  }, {
    "year" : 12345,
    "month" : 12345,
    "day" : 12345,
    "hour" : 12345,
    "minute" : 12345,
    "second" : 12345,
    "hvid" : 12345,
    "todoType" : "PRODUCTION",
    "remark" : "...",
    "carId" : 12345,
    "plateNumber" : "...",
    "mileage" : 12345,
    "startOfTravel" : true,
    "dailyAllowanceId" : 12345
  } ],
  "rowCount" : 12345
}
                
              
Response
HTTP/1.1 201 Created

              

GET /api/v1/traveltime/dailyallowance

Request Parameters
name type description constraints
limit query int
startIndex query  
userid query  
Response Body
media type data type description
application/json DailyAllowanceEntryList (JSON)
application/xml;charset=UTF-8 object

Example

Request
GET /api/v1/traveltime/dailyallowance
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "entries" : [ {
    "cnr" : "...",
    "description" : "...",
    "id" : 12345
  }, {
    "cnr" : "...",
    "description" : "...",
    "id" : 12345
  } ],
  "rowCount" : 12345
}