Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space PD and version Rudy

...

  • curl -i -X DELETE -d '{"filter":[["WORK_ORDER_ID","=",1622], ["WORK_ORDER_ID","=",1621]], "OR"}' http://localhost:8080/ams_dev/rest/v1/workOrder

    Error 415 – unsupported media type. (The call expects a JSON Object and the request does not specify a request type.)

    Note
    Note: The error message in this example is not a JSON Object because the error occurred before API functionality commenced.
  • curl -i -X DELETE -H "Accept:application/json" -H "Content-Type: application/json" -d '{"filter":[["WORK_ORDER_ID","=",1622], ["WORK_ORDER_ID","=",1621]], "OR"}' http://localhost:8080/ams_dev/rest/v1/workOrder/

     Error 400 – Bar Bad Request. (The JSON Object is incorrectly formatted.)

    Note

    Note: The error message in this example is not a JSON Object because the error occurred before API functionality commenced.

  • curl -i -X PUT -H "Content-Type: application/json" http://localhost:8080/ams_dev/rest/v1/workOrder/1643/DayCard/ -d '{"WORK_ORDERS_LABOR_DC":[{"LABOR_ID":"TRC_ID":1,"TOTAL_HOURS":0.1,"WAC_CODE_ID":null}]}'

    Error 400 – Bar Request. (This call has the correct structure, but it returns an error because not all primary key columns are in the request.)

    Note

    Note: The error message in this example is not a JSON Object because the error occurred before API functionality commenced.

  • curl -i -X PUT -H "Content-Type: application/json" http://localhost:8080/ams_dev/rest/v1/workOrder/1643/DayCard/ -d '{"WORK_ORDERS_LABOR_DC":[{"LABOR_ID":2412555,"DATE_WORK":"20130314","TRC_ID":1,"TOTAL_HOURS":0.0,"WAC_CODE_ID":null}]}'

    Error 400 – Bar Request. (This call has the correct structure, but it returns an error because zero hours are not allowed.)