Category "api-design"

What should the response status code be in a REST API when the given ID is a valid ID but there's no matching document?

I'm using MongoDB for my Express app and I know that when an ID is an invalid ID for the corresponding database, the response status code is 400 (Bad Request).

Rationale Behind PCL `shared_ptr` Interfaces

Many PCL interfaces accept only shared_ptr<T> arguments (e.g. boost::shared_ptr< PointCloud>). [Aside: that is it boost::shared_ptr and not std::sha

REST: handling nested resources and paths

I have three resources, owner, dog, and puppy and I am designing the REST endpoints for the puppy. I already know who the owner is with every request via JWT a

Offset pagination vs Cursor pagination

I am studying about pagination and I have some questions. What is the difference between two approches? Best use-case for a cursor based pagination? Can cursor

Should callers of an interface (need to) make assumptions about the underlying implementation?

I understand the benefit of Programming to an Interface and the benefit of using an Interface for the return type of a method: public List<Integer> getUs