Skip to content

Instantly share code, notes, and snippets.

@Dispader
Created August 9, 2017 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dispader/fd9edfe9962c77e35390e8ff06ebf504 to your computer and use it in GitHub Desktop.
Save Dispader/fd9edfe9962c77e35390e8ff06ebf504 to your computer and use it in GitHub Desktop.
A proposed API to query exposure group compliance.

API proposal for exposure group compliance

NOTE: this document is not final

[BASE URL]/exposure_group_compliance/[EMPLID]

example #1: person has multiple groups

[BASE URL]/exposure_group_compliance/3567315

returns

[
  {
    "name": "ROHP surveillance - amphibians",
    "compliant": true
  },
  {
    "name": "ROHP surveillance - birds, chickens, turkeys, other",
    "compliant": false
  }
]

example #2: person has one group

[BASE URL]/exposure_group_compliance/3567315

returns

[
  {
    "name": "ROHP surveillance - amphibians",
    "compliant": true
  }
]

example #3: person has no groups

[BASE URL]/exposure_group_compliance/3567315

returns

[
]

example #4: caller passes no emplid

[BASE URL]/exposure_group_compliance

returns

HTTP 400

example #5: caller passes something that is not an ID in Cority

[BASE URL]/exposure_group_compliance/ANYTHING_NOT_IN_CORITY

returns

HTTP 404

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