18F / fbopen

[DEPRECATED] An open API server, data import tools, and sample apps to help small businesses search for opportunities to work with the U.S. government.
Other
101 stars 45 forks source link

Add an endpoint where an opportunity can be reliably returned by id/solnbr #84

Closed kaitlin closed 10 years ago

kaitlin commented 10 years ago

I think it's reasonable for a user to expect to be able to query both a search endpoint and an endpoint that returns a single object reliably, based on a static id.

arowla commented 10 years ago

It's very straightforward to return a single record by ID. ES supports it at host:9200/index/type/id, so I was going to map that to /v0/opp/:id on the API. With potential solnbr overlaps between namespaces, it's less obvious how to make a "single record" endpoint for just solnbr. @kaitlin, do you think that (namespaced) ID is enough?

kaitlin commented 10 years ago

Yup, works for me.