Skip to content

i2joseph/test-regulation_by_topic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Regulation by Topic GET API

Write me a "GET" API that grab the government regulation data based on topic and publish date. Two key value needed:

  1. topic (string)
  2. publication_date (string) The response would be array of regulation data.

The regulation data object is

  1. abstract (string)
  2. agencies (array of agency)
  3. document_number (string)
  4. excerpts (string)
  5. html_url (string)
  6. pdf_url (string)
  7. public_inspection_pdf_url (string)
  8. publication_date (string)
  9. title (string)
  10. type (string)

In order to get the data:

  1. You need to hit this government regulation provider which is => https://www.federalregister.gov/api/v1/documents/?conditions[topics]=xxxxx&format=json (GET)
  2. Pass the topic from your API into the "conditions[topics]".
  3. Prohibited to pass the publication_date value into the API parameters: "conditions[publication_date][gte]" and "conditions[publication_date][lte]". Use for double checking the result.

Sample of topic:

  1. air-pollution-control
  2. agricultural-commodities
  3. food-additives
  4. chemicals

About

Test question

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published