Description

Get a list of courses

Parameters

Name Type Required Optional Searchable Note
coursetype string via search string
coursename string via search string

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/courses

Example Request with Search String

http://devsandbox.targetsolutions.com/v1/courses?q={"coursetype":"random coursetype","coursename":"random coursename"}

Example Header

GET /courses HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: xxOZWW8wrKxi9btFkQuJ4A==
Cache-Control: no-cache

Possible Results Sets

Results Set

{
    "courses": [
    	{
        "courseid": 2,
        "coursename": "Lead Awareness",
        "coursetype": "TS Course"
    }  
  ]  
}

No Results Set

{
  "httpcode":200,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/901",
  "developermessage":"The request returned zero results.",
  "statuscode":901,
  "status":"ok"
}

Access Denied Set

{
  "httpcode":401,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/800",
  "developermessage":"A request was made to a resource that you do not have ownership of.",
  "statuscode":800,
  "status":"access denied"
}