Skip to content

Instantly share code, notes, and snippets.

@russellbodine
Last active July 26, 2017 17:39
Show Gist options
  • Select an option

  • Save russellbodine/d038d8f62b58fda053dffe3e3a36aba8 to your computer and use it in GitHub Desktop.

Select an option

Save russellbodine/d038d8f62b58fda053dffe3e3a36aba8 to your computer and use it in GitHub Desktop.

Federal Account Object Class

Route: /api/v2/federal_accounts/object_class/:federal_account_id

Method: GET

This route sends a request to the backend to retrieve relevent Object Classes for the specified Federal Account

Response (JSON)

{
  "results":
  [
    {
      "major_object_class_name": "Personnel compensation and benefits",
      "object_class_names": ["Full-time permanent", "Other than full-time permanent", ...]
    },
    ...
  ]
}

Errors

Possible HTTP Status Codes:

  • 400 : Missing parameters
  • 500 : All other errors
{
  "message": "Sample error message"
}
@nmonga91
Copy link

nmonga91 commented Jul 7, 2017

if you save the file as a .md file, the markdown displays properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment