Discover api design best practices, include the articles, news, trends, analysis and practical advice about api design best practices on alibabacloud.com
Interactions between mobile apps and Web/cloud services are common, from data retrieval to user authorization and management. If you want to ensure the normal and efficient operation of the App, reduce development costs, and simplify application code, creating an API is essential. This article describes the design skills of the 10 major mobile APIs.
It is common for a mobile App to have a conversation with
) { pagerinfo.recordcount = list.total_count;//Total number of records modified result = list.list; } returnresult; }4. Integrated Web API interface for mixed frame interfaceThroughout the platform building of the Web API and the integration of the hybrid framework, I have developed and integrated the modules in a relatively independent way, implementing a unified approach from direct access to t
What is a good API.
· Complete (be Complete)
Complete functional support for identifying the user scenarios with focused support. That is, the user can perform the desired function through a call to a set of APIs.
· No redundancy (be minimal)
In a complete context, the API provides only the smallest set of features. Not missing, not redundant.
· Simple and clear (be simplicity clarity)
The interface
The Web application is divided into two parts, front end and back end. The current development trend is the front-end equipment (mobile phones, tablets, desktop computers, other special equipment ...).Therefore, there must be a unified mechanism to facilitate the communication of different front-end devices to the backend. This led to the popularity of API architecture, and even the "API first"
Restful api security design guide
The full name of REST is REpresentational State Transfer, which indicates stateless transmission without session. Therefore, each request must carry authentication information. Rest is based on http and stateless. It is only an architectural method, so its security features must be implemented by ourselves and there is no ready-made architecture. We recommend that all reque
The Golden Rule of API DesignMichael FeathersAPi DESiGN is TOUGH, particularly in the LARGE. If you are designing a API that's going to has hundreds or thousands of users, you had to think on how do you might ch Ange it in the future and whether your changes might break client code. Beyond that, and you had to think about the how users of the your
Meaning:
http Methods: Also known as HTTP Verbs,http Methods can be translated into the HTTP method . They are part of the HTTP protocol, which mainly specifies how HTTP requests and operates resources on the server, often get,post, and so on.
API:application Programming Interface application interface, RESTful API, such API is via HTTP protocol URL The form is exposed to other system or module
NET + Offline Salon | Mobile app Mode innovation: give you a reason to do the app >>Good API design: In the self-description, at the same time to achieve abstract goals.Well-designed APIs allow developers to get started quickly, without the need to keep manuals and documentation often, or to visit the tech support community frequently.Smooth interfaceMethod chain: Smooth and easy to read, easier to understa
provider. If you authorize access to allow consumers to write things up on your timeline, there is no need to provide your Facebook login information.OAuth is not appropriate for Client/server's RESTful API, and is typically used in your RESTful API to allow third-party applications (consumers) to access.The above example is that direct communication between client/server does not need to hide authenticati
I. OverviewOriginal address: HTTPS://PRO.ANT.DESIGN/DOCS/API-DOC-CNIn the daily development, often is separated from the front and back end, this time agreed to a set of interface standards, the front and back end of their own independent development, will not be the other side of the technical difficulties to block, so as to ensure project progress.In Ant Design Pro we already have a sophisticated mock fun
USERNAME:PASSOWRD base64 value) in the Http header.For example, username is ZMK, password is 123456, and the request is as followsGet/auth/basic/http/1.1host:xxxxxauthorization:basic em1rojeymzq1ng==And Base64 decoding is very convenient, if you do not use Https, the equivalent is the account password directly exposed in the request.High risk, the actual developer should use almost 0.By the way the DIGEST certification, and BASIC certification is similar, and not suitable for the
Source: http://meiyitianabc.blog.163.com/blog/static/105022127201310562811897/API Permissions Design Summary:Recently in doing API permissions design this piece, do a summary of the authority design.1. Suppose we need access to the API
API design in the software system in the importance of self-evident, in swift.org saw an "API design Guidelines", although in the case of Swift, but for other languages also have a lot to learn from the place, here roughly translated one or two, for communication purposes, comparative with the sex, Some deletions, if y
The concept of Restful API here does not bother, Bo friends online search ha definition articles a lot, straight into the point:First, throw a question:Judging by the ID of the user, the name is the product of Call of Duty (COD14) exists (say I still like to play like the World War II mission call this amount, off-topic ...)? If this problem occurs in an MVC project, I think we will generally design this:Ap
Recently, it has been hard to find out whether to create restful APIs or those previously called functions. If you create a restful API, there are many design issues to be clarified. This is not a matter of time. When you use a web API to create a restful API, how can I design
The abstract mechanism of programming languages includes two basic aspects: one is the basic elements/semantics of language attention, and the other is the construction rules from basic elements/semantics to composite elements/semantics. In general languages such as C, C ++, Java, C #, and python, the basic elements/semantics of a language are often far from the problematic domain, layer-by-layer abstraction through the api library is the most common
1. If you have already begun to reach out to a friend of the RESTful API design approach, you should first have a general understanding of HTTP/HTTPS, although it has nothing to do with restful APIs. However, to increase the security of the site is very important, here is related to whether to expose the API interface, otherwise it will lead to the disclosure of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.