Closed kaitlin closed 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?
Yup, works for me.
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.