How to obtain a list of occupations

Occupations can be retrieved by using the following URL and specifying a starting record number and ending record number.  If left blank, this will default to the first 50 records.  Occupations are returned in order of name.

 

 Method URL
 GET  https://api.fairwarningsoftware.com/v1.1.1/occupations/[start]/[limit]

 

 Status Response
 200

 {"occupations":[
    {
        "occupation_id": <occupation_id>,
        "occupations_title": <occupations_title>
    },
    "record_count" : <record_count>
]}

401  {"error":"The API keys provided are invalid."}
403  {"error":"API keys are missing."}
500  {"error": <custom error>}

 

 Field  Type Description
occupation_id int The unique identifier for the occupation
occupation_title string The title of the occuption
record_count int The total number of records matching the search results