18F / afsmallbiz

Central point for all 18F Air Force Small Business projects
sbhub.wbi-icc.com
Other
5 stars 5 forks source link

Replace "year" parameter with "date" parameter #51

Closed dwcaraway closed 10 years ago

dwcaraway commented 10 years ago

NAICS information is returned for a specific date (date parameter in YYYYMMDD format). By default, NAICS information is returned for current date.

For example, given a naics of 21113 and a date of 20080412, return the matching naics description for 2007.

catherinedevlin commented 10 years ago
dwcaraway commented 10 years ago

I'd remove the year parameter altogether. It's confusing.

If date is omitted, use the NAICS year closest the current date (e.g. 2012).

If date is before earliest naics year in the database (currently 2007), return an error.