api-design
Designing an async API in Python
(Note: this question is strictly about the design of the API, not about how to implement it; i.e. I only care about what the client of my API sees here, not what I have to do to make it work.)[详细]
2023-04-02 10:29 分类:问答Rails query string parameter format when providing an API with filters
I\'m opening up a few REST API calls to others to use. Some of them include search filters. Let\'s say I have a grocery endpoint When I currently make calls I might use:[详细]
2023-03-27 14:53 分类:问答Web API design tips
I am currently developing a very simple web service and thought I could write an API for that so when I decide to expand it on ne开发者_C百科w platforms I would only have to code the parser applicatio[详细]
2023-03-27 10:31 分类:问答Best way to name async method
Where is an API of, let’s say, one method: “DoSomething()”. There should be two versions of the method: asynchronous and synchronous. We should encourage API users to use async one so sync one prob[详细]
2023-03-25 18:45 分类:问答Why include methods in a public API like Thread.destroy() that aren't implemented?
I\'m a bit puzzled by this one. There are some methods in the 开发者_Python百科Java API like Thread.destroy() that aren\'t implemented at all. (I know it hasn\'t been implemented probably because it w[详细]
2023-03-25 04:50 分类:问答Which result pattern is best for a public API and why?
There are a few different common patterns for returning the result of a function call in public APIs.It is not obvious which is the best approach.Is there a general consensus on a best practice, or, a[详细]
2023-03-21 21:54 分类:问答How to update the Nested List/Tree Store in Sencha Touch?
I have a nested list which must be filled with new data based on what does user select in an Ext.Carousel.[详细]
2023-03-21 07:41 分类:问答API design: one generic interface VS three specialized interfaces?
I\'m working on a tool where users can use their own annotations to describe data processing workflow (like validation, transformation etc).[详细]
2023-03-19 09:22 分类:问答First write code using API, then actual API - does this approach have a name and is valid for API design process?
Standard way of working on new API (library, class, whatever) usually looks like this: you think about what methods would API user need[详细]
2023-03-18 00:28 分类:问答What will make backward compatibility impossible?
We have a platform component (written in Java) that now shall be backward compatible for a certain period, e.g. 3 years.[详细]
2023-03-16 07:24 分类:问答