api-design
Scala - Define type for Either for compactness or write it explicitly for readability?
In Scala, I can have: trait Api { def someApiCall: Either[Failure, GoodResult]; } or object SomeObject { type SomeResult = Eit开发者_运维知识库her[Failure, GoodResult][详细]
2023-02-21 01:13 分类:问答perl-selenium: how to extend Test::WWW::Selenium object with custom methods?
Using perl and TAP, I have written a lot of selenium tests and saved them in *.t files. I have created some helperfunctions, put them into a non-object orientedpackage, say My::Util::SeleniumHelper.[详细]
2023-02-20 17:50 分类:问答Is OAuth irrelevant when HTTPS is used?
I am designing a RESTful API which will always communicate over HTTPS. Is there any reason to use a scheme like OAuth when running over HTTPS? I am particularly intere开发者_如何学Gosted whether or no[详细]
2023-02-19 06:11 分类:问答API Endpoint Semantics
Is an API endpoint the \'method\', like https://api.foursquare.com/v2/venues/ or the full URL including non-query-string parameters likehttps://api.foursquare.com/v2/venues/5104开发者_JS百科[详细]
2023-02-11 12:53 分类:问答Open-source / free universal EPG / XMLTV data API or service, or how to make one? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.[详细]
2023-02-10 21:32 分类:问答Correct handling of return data [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing[详细]
2023-02-09 15:30 分类:问答Best practice for asynchronous c api design
I\'m about to design a C api for some functionality and I would like to make it asynchronous as the exposed functionality may take some time. Using a blocking api is probably not a good idea as the us[详细]
2023-02-07 04:58 分类:问答Good Practices in JavaScript API Development
What\'s a good approach to designing a JavaScript API? I\'m relatively开发者_JAVA百科 new to JavaScript and learning the key good features of the language, mostly from \"JavaScript: The Good Parts\".[详细]
2023-02-06 20:59 分类:问答Getting the right level of Interface granularity
I\'m doing some API design work at present, involving the specification of a number of interfaces as abstractions that will later be implemented by various concrete classes.[详细]
2023-02-06 04:28 分类:问答How can I return control to the client app and ask for input again from my API?
Writing a pure API seems to be bring up some challenges. For example, I am used to writing winforms/asp.net apps where if the input I have is invalid, I can programatically bring up a dialog box/webpa[详细]
2023-02-05 22:41 分类:问答