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
# #-*-Coding:utf-8-*-# # python:2.x# __author__ = ' Administrator '# my_list=[' A ', ' B ', ' C ', ' d '#"""# Most standard programs are built without ignoring usability, see the following example to understand the meaning of the sentence#"""# if ' e ' not in my_list:# my_list.append (' E ')# Print My_list# #[' A ', ' B ', ' C ', ' d ', ' e ']# #这是编写python程序和其他语言相比更加简单的原因之王, when writing a program, ideas can quickly be converted into lines of code# #3点是本章的重点#"""# Use the
Reference effective Objective 2.0 item use clear and consistent naming recommendations1. Method Name: Apply the Hump nomenclature, methods name should be able to show how the method is doing, do not worry about the name process, because when used, Xcode will automatically complete-If methods returns a value, the method name should indicate what the value-Do not use abbreviations-For Boolean property, plus is or has prefix-Do not use the Get prefix-The
SolrJ API official documentation best practices, solrj Best Practices
The following content is translated from the Solr Wiki official document. It is copyrighted and can be reproduced at will.
Solrj is a Java client that accesses solr. It provides a java interface for adding, updating, and querying solr indexes. This page introduces the latest version of Solr
Constants (uppercase| upper_case): Global variables that do not change (note that Python itself does not support const constants in C + +, which is only a convention), consisting of uppercase letters and [underscores]. The value that is typically used to save the default configuration.private variables for modules, classes, methods | functions | methods (_lower_case): frequently changing module-level variables (private within the module), classes, methods of private variables, consisting of a fr
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
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 "universal" design standard: How to Authentication? Wh
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
"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 few of the principles must be adhered to:
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 standards are reasonable.
The
Atitit usrQBF2312 namespace pkg and API naming spec specificationSimplified English 1 Common class Library SDK named word statistics 1Simplifying Time Rules 1namsspace Nam Spec, refer to the java. NET transport SDK 1Api Naming conventions 1 refer to well-known APIs, such as the game API reference cocos2d, which ca
Ylbtech-jasper:api / API policies and best Practices
1. back to top
1. API Policies and best practicesCisco Jasper has established an API fair usage policy to ensure that all Control Center users have the best experience possible. Any client code that uses the Control Center
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 pl
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, DELETE, POST and PUT to operate with the resources.These is best
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 to authenticate indirectly, but does not ann
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/
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 for designing simple RESTful APIs.A noun used instead of a verbUsing nouns to define int
Python calls Sina Weibo API project practices, pythonapi
I recently came into use to call the Sina Weibo open interface, so I would like to try using python to call the Weibo API.
SDK: http://open.weibo.com/wiki/SDK code is not more than a dozen K, can fully understand.
If you have a Weibo account, you can create an APP and then obtain the app key and app secret.
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
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.