simplicity, save the token in a global variable. Window.token =data. Token; Alert ("Login Successful"); } Else{alert ("Login failed:" +data. Message); } } }); }); //invokes an interface that obtains data from an API site that requires authentication. $ ("#invoke"). On ("click",function() {$.ajax ({URL:"Http://localhost:8056/
Best practices for open api application development and best practices for api application development
In the company's internal system, there will be some third-party Data Access scenarios, for example, in Ctrip's app, you can see iron's ticket, you can find the hotel where to go in the Meituan hotel list. This data i
Mobile Web development practices and web development practices
The rapid development of mobile devices has brought great convenience to users. Users can easily access the Internet using Android, iPhone, and other mobile devices. Mobile devices have high requirements on the Performance of
This is a creation in
Article, where the information may have evolved or changed.
Statement
This article is just a summary of my personal reading materials and engineering practices, which may not be the best practice. But hopefully, some help will be given to readers who have doubts about restful API design and engineering practice.
Objective
The RESTful principle was put forward by Roy Fielding in the fif
"college", they may be more theoretical, but sometimes derail the real world (so I'm a liberal). So my goal in this article is to start from a practical point of view, give the current Web application of API design best practices (of course, I think the best ~), if it is not appropriate, I will not comply with the standard. Of course, as the basis of design, a f
a liberal). So my goal in this article is to start from a practical point of view, give the current Web application of API design best practices (of course, I think the best ~), if it is not appropriate, I will not comply with the standard. Of course, as the basis of design, a few of the principles must be adhered to:
Comply with standards when the standar
1. BackgroundREST(English: Representational State Transfer Representational State transfer) describes a schema-style network system, such as a Web application.At present, the Internet is flooded with RESTful API articles about how to design (for convenience, " RESTful API shorthand for" API ), but there is no "universa
BackgroundThe internet is awash with articles about restful APIs (for convenience, the "RESTful API" shorthand for "API" below), but there is no "universal" design standard: How to do authentication? What is the API format? Should your API include version information? When you start to write an app, especially when the
Google Web development best practices (I), google Best Practices
This article was first seen on the github blog (http://aliqin.github.io) of the Ali communications front-end team, the original address https://developers.google.com/web/fundamentals/ (to overturn the wall ). Now that you want to go to Alibaba, you must
the credential information, which of course is not required and optional.2.4 API keyword (API key)Every request for an API contains a keyword that uniquely identifies the user.2.5 OAuth 1.X/2HTTP-based interactions and workflows that authorize the use of resources such as APIs, the Web, and so on.OAuth includes a step
Web APIs has become a very important topic in the last year. We at M-way Solutions is working every day with different backend systems and therefore we know about the importance of a Clean API design.Typically we use a RESTful design for our web APIs. The concept of REST is to separate the APIs structure into logical resources. There is used the HTTP methods GET,
Web APIs have become more and more popular in recent years, and the simplicity of API design has become particularly important in multi-backend system interaction applications. In general, RESTful APIs are used as our Web API. This article describes some of the best practices
API test Best Practices-AuthenticationApplicable class: Advanced1. OverviewAuthentication is typically defined as an activity that confirms the identity of a resource, in which the identity of the resource refers to the consumer of the API (or, in other words, the caller). Once a user's authentication has passed, he will be granted access to resources or APIs tha
PHP-developed API multi-version management practices
This article focuses on mobile Internet clients that need to be compatible with the old version. force upgrade to the latest version of the app is not discussed here.
In the bugtags.com project, our version complies with the following specifications.1.0.1Major features, minor updates, bug fixesOur version list is as follows:
1.0, 1.1, 1.2, 1.3, 1.42.0,
First, let's talk a little nonsense:
1. For the name tonylpProgramFrom the employee's perspective, I like to write tonylp, using the camel method, but I don't know what it was for at that time. The name of the blog garden will be changed to tony_lp. If I remember correctly, this should be a naming method in C ++. You are welcome to shoot a brick, because I can't remember it.
2. I like the blog park very much. There are a lot of big cows in this place. I also like to post articles here, but I
, Internet companies, and smart terminal developers;
Mobile app developers
Traditional web developers;
Architect;
Traditional smartphones, such as Android Developers;
People who want to learn HTML5;
Browser customization personnel;
Artist developers;
Media organizations;
Time
Content
Remarks
Day 1
1st topics: HTML5 architecture thinking 1, 1, all in Javascript1, 2, ect of Device cloud1, 3 Open P
refers to the uncompressed size).
Package a component as a compound document: wrapping the page content into compound text is like an email with multiple attachments, which enables you to get multiple components in an HTTP request.
More information: http://developer.yahoo.com/performance/rules.html (Chinese translation)third, some tools1. Google PagespeedGoogle offers the Pagespeed tool, a browser plugin that can be used to best apply the Web
A collection of best practices and tools for Web front-end optimization published in2013-09-23 19:47| 21,315 Reads | source Googe yahoo| 118 Comment | author wangguo compilation Web optimization Google Yahoo pagespeedyslowSummary:The performance of the front end is important for the user experience of the Web App.
Summary:The performance of the front end is important for the user experience of the Web App. Don't assume that your web app is good enough, but there are plenty of things you can do to improve your performance. This article introduces Google and Yahoo! Best practices and tools for front-end optimization, and you can test your
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.