-
How to use the token front end in the RESTful interface?
the backend gives a RESTful interface document, and the request header needs a token to return success. Did I write this token when I was requested by the front-end ajax? What s the point if is not generated dynamically? this is how my Mini Program...
-
RESTful's. Net webapi routing and URL's doubts
the first time you use "ASP.NET MVC4 WebAPI " to develop a project, you only need to use WebAPI because the front end invokes the rendering directly by HTML+Ajax.
< H2 > doubt 1 < H2 >
what elegant posture do the great gods use to avoid the growth ...
-
How to realize batch deletion by using RESTFUL API in json-server
when using vue to manage the system in the background, there will be batch deletion operations, but after finding a lot of information, it still can not be solved. I hope to get your help.
axios({
method: delete ,
url: that.baseURL,
params: ...
-
How to use java to implement a webservice interface that can access linux local file data?
1. How to use java to implement a webservice interface that can access linux local file data? 2. Files are larger text files (about 2G) 3. Is there a better way, such as storing text files in an appropriate database (such as whether mongdb is appropria...
-
Questions about QQ interconnected documents of Oauth2
there are two modes of OAuth protocol in Tencent QQ Internet platform. The specific process is understood, but the differences in usage scenarios are not clear:
the first is client-side mode : using OAuth2 s Implicit_Grant mode
the second is serv...
-
Nodejs restful api authentication authorization
question 1:
how does nodejs implement restful api authentication?
has tried jwt, but cannot expire actively after token is signed. That is to say, for example, if a user logs in and issues a two-hour token, the token is valid within two hours. ...
-
How to control the permissions of the RESTFUL interface provided by the back end in the separation of the front and back end?
encountered a problem today
I have a system, which is role-based permission control. the front end naturally controls the view that should be displayed according to the role. but in order to prevent others from directly using httpclient access, then...
-
What is the difference between how browsers implement POST and PUT requests?
when learning REST, I learned that POST requests are non-idempotent, while PUT requests are idempotent, so POST is suitable for adding and PUT is suitable for modification. there is a question here, is the idempotency here just a difference in definitio...
-
On the Security of token and session generated by jwt
now the project I am working on is separated from the front and rear ends, mainly the development of the api interface. The login logic is like this. first, the user logs in with the account password. If it is correct, the user will automatically genera...
-
Get post, are these stipulated by http or restful?
get post are these stipulated by http or restful?
I am the front end, and I always thought that get post is stipulated by the http protocol. but recently, when I saw what restful is, I saw that get is used to obtain, and post is used to create new on...
-
The front-end interview asked Restful, what he wanted to know.
according to the interface I currently use Restful, the front end only needs to know how to use get , post , put , delete to make the corresponding request. and the corresponding semantics of various http code. You will be able to satisfy the com...
-
The problem of shiro Custom filter intercepting restful style
premise
now do a separate front and rear application, use shiro as permission control in the background, use jwt instead of session s stateless web application, customize a shiro filter.url with restful style. All interfaces url begin with api...
-
Can I use restful for statistical api?
problem description
Restful s api can be used for regular add, delete, modify and other operations, but if my api is to do "statistics " for resources, how should I design such Api?
the environmental background of the problem
currently, I have a...
-
The problem that the flask_restful reqparse.RequestParser () help parameter cannot take effect
when passing the help parameter to add_argument when using flask_restful parameter parsing, the help message will not appear if an error is reported. The code is as follows:
-sharp -*-coding:utf-8 -*-
from flask_restful import reqparse
from flask impo...
-
Flask_restful add field problem
there is a field in the QaAnswer table in this table. When json returns, I want to add a field to QaAnswer. I don t know how to add it .
class QaAnswer(db.Model):
__tablename__ = qa_answer
id = db.Column(db.Integer, primary_key=True)
a...
-
How to design the directory structure of thinkphp5 Restful API version (multi-module)
problem description
A set of interfaces developed by tp5 and a mall for multi-end use are intended to make interface version division. The situation is as follows:
API code, PC side and WAP side should be placed under the same tp5 application, beca...
-
What framework is used to separate the backend permissions from the front and back end, Shiro or Spring Security?
I would like to ask: now that the backend is separated from the front and back, and the backend provides restful API, how does the backend permission be done? can the commonly used shiro still work, or do they all use spring Security? ...
-
To ask a strange question, is there any way for C-sharprestful api to enter the breakpoint after receiving the request from the front end?
for example, windows service can be debugged later by attaching to the process, as a programmer, want to improve their awareness, whether there is a great god can answer. ...
-
How to solve the problem that webapi always returns invalid_client when getting token?
webapi always returns invalid_client when getting token, as shown below:
Head :
related code:
WebApiConfig.cs
public static void Register(HttpConfiguration config) {
config.MapHttpAttributeRoutes();
config.Routes.MapHttpRoute(
...
-
Some questions about RESTful style interface
refer to the restful style when writing the interface, Ruan Yifeng RESTful API Design Guide there are the following examples
GET zoos:
POST zoos:
GET zoos ID:
PUT zoos ID:
PATCH zoos ID:
DELETE zoos ID:
GET zoos ID animals:
DELETE zoos ID an...