Top "Api-design" questions

API design is the process of determining and exposing a set of consistent method signatures, return values, and documentation intended for use by other developers to allow programmatic access to data.

What is the proper REST response code for a valid request but an empty data?

For example you run a GET request for users/9 but there is no user with id #9. Which is the best …

rest http api-design
API pagination best practices

I'd love some some help handling a strange edge case with a paginated API I'm building. Like many APIs, this …

rest pagination api-design
When do I use path params vs. query params in a RESTful API?

I want to make my RESTful API very predictable. What is the best practice for deciding when to make a …

rest spring-mvc restful-url restful-architecture api-design
What are best practices for REST nested resources?

As far as I can tell each individual resource should have only one canonical path. So in the following example …

rest api-design
REST design for file uploads

I want to create a REST API for a file upload service that allows a user to: Open a session …

rest file-upload api-design
Why does String.valueOf(null) throw a NullPointerException?

according to the documentation, the method String.valueOf(Object obj) returns: if the argument is null, then a string equal …

java null nullpointerexception overloading api-design
Token Expired - JSON REST API - Error Code

I've got a JSON REST API. There is a handshake that will give you a token that is valid for 15 …

web-services rest api-design
How do you implement the factorial function in C++?

Possible Duplicates: Calculating large factorials in C++ Howto compute the factorial of x How do you implement the factorial function …

c++ algorithm api-design
Call a Server-side Method on a Resource in a RESTful Way

Keep in mind I have a rudimentary understanding of REST. Let's say I have this URL: http://api.animals.com/…

api rest url api-design restful-architecture
Open-source / free universal EPG / XMLTV data API or service, or how to make one?

I am looking for (an open-source, aka "free") data-source for universal EPG / XMLTV services? The project needs updated/updateable real-time …

xml datasource api-design television epg