Skip to content

Instantly share code, notes, and snippets.

@russellbodine
Last active August 2, 2017 20:23
Show Gist options
  • Select an option

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

Select an option

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

Download

Route: /api/v2/download/

Method: POST

This route sends a request to the backend to retrieve award IDs matching the specified search text.

Request example

{
	"search_text": "561",
	"limit": 10
}

Request Parameters Description

  • search_text - required - a string that contains the search term(s) on which to search for the award IDs
  • limit - optional - an integer representing the number of desired entries per budget title type. It can be an integer or a string representation of an integer. Defaults to 10.

Response (JSON)

{
	"results": [
		{
			"program_number": "561110",
      			"program_title": "title",
      			"popular_name": "pop name"
		},
		....
		
	],
	
}

Errors

Possible HTTP Status Codes:

  • 400 : Missing parameters or limit is not a valid, positive integer
  • 500 : All other errors
{
  "detail": "Sample error message"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment