Open API v3

Challenge

Only editable by group admins

  • Last updated November 25, 2019 at 5:40 PM by hank-holiday
  • Evidence only visible to badge awarders
Solve this learning challenge by posting a JSON or YAML code snippet.
Create a swagger spec file (in JSON or YAML) which describes a simple read-only API for retrieving a list of registered voters. Here are the key requirements:
  • The list should be paginated with parameters that control the page size and current page number
  • The voters returned should be defined as a "voter" definition
  • Each voter should have all of the fields you would expect, including an age (with appropriate max / min values) and a party affiliation (with a restricted list of possible values)