Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Referral Sources identify how the student was referred in for advising services.  

Get All Service Reasons

GET /ssp/api/1/reference/serviceReason

Parameters

status : ALL, ACTIVE, INACTIVE, DELETED
start : First result (0-based index) to return
limit : Maximum number of results to return
sort : Property name
sortDirection : Ascending/descending keyword (ASC/DESC or ASCENDING/DESCENDING)

Returns

List<ServiceReason>

{"success" : "true",
 "results" : "100",
 "rows" : 
    [{"createdBy" : 
        {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
         "firstName" : "John",
         "lastName" : "Doe"},  
      "createdDate" : "1332216000000",
      "description" : "Campus Police",
      "id" : "a8c83fd4-ee33-46ee-8d89-9b2956696f37",
      "modifiedBy" : 
        {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
         "firstName" : "John",
         "lastName" : "Doe"},  
      "modifiedDate" : "1332216000000",
      "name" : "Campus Police",
      "objectStatus" : "ACTIVE"},
     {"createdBy" : 
        {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
         "firstName" : "John",
         "lastName" : "Doe"},  
      "createdDate" : "1332216000000",
      "description" : "Student Conduct",
      "id" : "55aebdf7-466b-49c4-a08c-6e01eaf101d7",
      "modifiedBy" : 
        {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
         "firstName" : "John",
         "lastName" : "Doe"},  
      "modifiedDate" : "1332216000000",
      "name" : "Student Conduct",
      "objectStatus" : "ACTIVE"},
     ...
    ]
}

 

Get a Service Reason

GET /ssp/api/1/reference/serviceReason/{id}

Returns

ServiceReason

{"createdBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "createdDate" : "1332216000000",
 "description" : "Campus Police",
 "id" : "a8c83fd4-ee33-46ee-8d89-9b2956696f37",
 "modifiedBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "modifiedDate" : "1332216000000",
 "name" : "Campus Police",
 "objectStatus" : "ACTIVE"}

 

Create a Service Reason

POST /ssp/api/1/reference/serviceReason

Sample Post

{"description" : "Campus Police",
 "name" : "Campus Police"}

Returns

ServiceReason

{"createdBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "createdDate" : "1332216000000",
 "description" : "Campus Police",
 "id" : "a8c83fd4-ee33-46ee-8d89-9b2956696f37",
 "modifiedBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "modifiedDate" : "1332216000000",
 "name" : "Campus Police",
 "objectStatus" : "ACTIVE"}

 

Save a Service Reason

PUT /ssp/api/1/reference/serviceReason/{id}

Sample Post

{"createdBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "createdDate" : "1332216000000",
 "description" : "Campus Police",
 "id" : "a8c83fd4-ee33-46ee-8d89-9b2956696f37",
 "modifiedBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "modifiedDate" : "1332216000000",
 "name" : "Campus Police",
 "objectStatus" : "ACTIVE"}

Returns

ServiceReason

{"createdBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "createdDate" : "1332216000000",
 "description" : "Campus Police",
 "id" : "a8c83fd4-ee33-46ee-8d89-9b2956696f37",
 "modifiedBy" : 
   {"id" : "91f46e39-cea8-422b-b215-00f6bcf5d280",
    "firstName" : "John",
    "lastName" : "Doe"},  
 "modifiedDate" : "1332216000000",
 "name" : "Campus Police",
 "objectStatus" : "ACTIVE"}

 

Delete a Service Reason

DELETE /ssp/api/1/reference/serviceReason/{id}

Returns

{"success" : "true"}

or

{"success" : "false", 
 "message" : "Message when success is false."}
  • No labels