Get specialty

This version of the API docs is depreciated and will be taken offline soon.
Please migrate to the new version as soon as possible to avoid service disruption.

New version can be found at https://docs.wceaapi.org/

Returns a specialty by id.

Request

  • HTTP Verb: GET
  • URI: /specialty/{id}

Query Parameters

  • id: specialty id.

Request example

$trainings = $API->getSpecialty(1236);

Output Example

array(
 "id" => 1236,
 "name" => "Sleep Medicine",
 "sub_specialties" => array(
  [0] => array(
   "id" => 4567,
   "name" => "Hospice and Palliative Medicine",
   "sub_specialties" => null
  ),
  [1] => array(
   "id" => 4568,
   "name" => "Pediatric Anesthesiology",
   "sub_specialties" => null
  ),
  [2] => array(
   "id" => 4569,
   "name" => "Pain Medicine",
   "sub_specialties" => null
  )
 )
)