2 - GIVE JOB

Description: Retrive job data from your Crosstrack-based server and send (outsource) it to another server. You can retrieve/send multiple jobs.


A. Node:

http://ctsgtest.com/api/outsource/job/give/
 

B. Method:

GET
 

C. Parameters:

  1. Parameter:
    jobs
    Example:
    2000002997
    Type:
    String
    Description:
    Job ID's to be outsourced
  2. Parameter:
    idft
    Example:
    193
    Type:
    String
    Description:
    the ID of the user making the API call ON TARGET SERVER
  3. Parameter:
    keyft
    Example:
    123
    Type:
    String
    Description:
    the API key of the user making the API call ON TARGET SERVER
  4. Parameter:
    scrft
    Example:
    ABC
    Type:
    String
    Description:
    the API secret of the user making the API call ON TARGET SERVER
  5. Parameter:
    server
    Example:
    http://crosstrack.sg
    Type:
    String
    Description:
    The TARGET SERVER

D. Request example:

http://ctsgtest.com/api/outsource/job/give/?jobs=2000002997&idft=193&keyft=123&scrft=ABC&server=http://crosstrack.sg
 

E. Response example:

{ "STATUS": "SUCCESS", "MESSAGE": "JOBS SAVED IN DATABASE", "DATA": [ { "status": "SUCCESS", "id": 2000003085 } ], "ADDITIONAL_MESSAGE": "ALL JOBS SAVED TO DB." }
{
    "STATUS": "SUCCESS",
    "MESSAGE": "JOBS SAVED IN DATABASE",
    "DATA": [
        {
            "status": "SUCCESS",
            "id": 2000003085
        }
    ],
    "ADDITIONAL_MESSAGE": "ALL JOBS SAVED TO DB."
}
							

F. Example of API Call:

GET Give Job

Result

{{result_getGiveJob}}