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

Search function should accept NAICS codes as search terms #21

Open
louh opened this issue Sep 23, 2013 · 1 comment
Open

Search function should accept NAICS codes as search terms #21

louh opened this issue Sep 23, 2013 · 1 comment

Comments

@louh
Copy link
Member

louh commented Sep 23, 2013

It duplicates the functionality as querying / retrieving a single number but the benefit is that the response comes back in a similar format to the search functionality. Predictability is nice.

@monfresh
Copy link
Member

You should be able to format the response any way you want. When querying/retrieving a single number, you should be able to format that response to match the format of the search response. In Rails, there are many different ways to accomplish this. Some of the more popular ones are RABL, JBuilder, Roar and Grape Entity.

I'm sure there's something similar for whatever framework you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants