Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverting API endpoint examples #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code-samples/api_paging_csvoutput.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Base URL for this endpoint with $inlinecount set to return total record count. Add
# filters, column selection, and sort order to the end of the baseURL
baseUrl='https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?$inlinecount=allpages'
baseUrl='https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?$inlinecount=allpages'

# Return 1 record with your criteria to get total record count. Specifying only 1
# column here to reduce amount of data returned. The backslashes are needed before
Expand Down
2 changes: 1 addition & 1 deletion code-samples/api_paging_jsonoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from datetime import datetime

# Base URL for this endpoint. Add filters, column selection, and sort order to this.
baseUrl = "https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?"
baseUrl = "https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?"

top = 1000 # number of records to get per call
skip = 0 # number of records to skip
Expand Down
2 changes: 1 addition & 1 deletion code-samples/api_paging_jsonoutput.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Paging example using bash. Output in JSON.

baseUrl='https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?$inlinecount=allpages'
baseUrl='https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?$inlinecount=allpages'

# Return 1 record with your criteria to get total record count. Specifying only 1
# column here to reduce amount of data returned. The backslashes are needed before
Expand Down
2 changes: 1 addition & 1 deletion code-samples/api_paging_rdsoutput.r
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require("httr") # wrapper for curl package - may require installation

datalist = list() # a list that will hold the results of each call

baseUrl <- "https://www.fema.gov/api/open/v2/FemaWebDisasterDeclarations?"
baseUrl <- "https://www.fema.gov/api/open/v1/FemaWebDisasterDeclarations?"

# Determine record count. Specifying only 1 column here to reduce amount of data returned.
# Remember to add criteria/filter here (if you have any) to get an accurate count.
Expand Down