Questions tagged [RESTful API] (862)

1
answer

Area of responsibility, back-end developer when building RESTful APIs?

Please help in clarification of the issue. Tell the newcomer about the problem of back-end developer when building RESTful APIs. His area of responsibility. It is clear that the more experience and practice is good, but I want to know the minimum for back-end and where is the watershed and then there is the task of the fron...
Daniella.Veum18 asked April 19th 20 at 12:32
0
answer

How to describe the server API (Rest) at the front React/Redux using Typescript?

How to describe the server API on the front React/Redux using Typescript? maybe there are some practice of how to do it thank you
Nels_Bednar64 asked April 19th 20 at 12:31
2
answers

How to listen to the backend on the client side?

Good evening! There's a problem, in General, that a sensible answer I in these the Internet is not found. And so to the point, for example I want to write a notification system for the site, for example on the website there is a cherished button husky and two user(say user_1 and user_2). So, user_2 like to post user_1, user...
Fern_Kreiger asked April 19th 20 at 12:15
1
answer

Why can't I login with spring rest jwt?

Can't log in, although registration is no problem. Was googling and someone wrote that the problem is that password which didn't come keshirovaniya, try ksirova is still not out. Don't understand what the problem is. Crashes and exception error 401 mainly here: authentication = authenticationManager.authenticate( new Usern...
jayson9 asked April 18th 20 at 13:37
1
answer

How to implement backward compatibility for versioning a REST API in Spring Boot?

I want to implement versioning using headers and thus achieve the possibility to specify a range of versions in the controller. It would be ideal to use annotation, but have no idea how to implement it processing, I'd be happy for any code examples or steps! A perfect score on the example controller: @GetMapping @Version(...
Vena.Christiansen82 asked April 18th 20 at 13:08
2
answers

Authorization rest APIs python?

Good day, ladies and gentlemen! Have the Front-end is Python, the Backend of wordpress, the communication front and Beck going through a Rest API Wordpress. For Python using a library of wp-api-python The crux of the problem - can't figure out how to authorize users on the site through the Rest API. For example - past'...
Belle73 asked April 18th 20 at 12:46
1
answer

How to configure access to swagger.the json for a domain name?

Hello. On the server running Flask via uwsgi (127.0.0.1:56733), access proximedia using nginx. In the browser, but the JS is trying to load the swagger.json local URL, which ultimately leads to the error: Fetch errorFailed to fetch http://127.0.0.1:56733/swagger.json In the end, can't get the generated documentation to the ...
bryce.Osinski asked April 18th 20 at 12:41
2
answers

What response code to return if the resource does not exist and access to resources of the same type allowed?

For example, the client makes a request to retrieve a resource, for example, /posts/123, but access to the /posts have only authenticated users and, in addition, that resource (/posts/123) does not exist. It can not get to /posts/123 for two reasons: The one who asks is not authenticated The resource does not exis...
marilou_Lang asked April 18th 20 at 12:18
1
answer

Is it possible to create a pure ReactJS web app with the authorization and antifemale?

Hi. I have a RestAPI (back-end). Can I do a clean React app that will authenticate the person based on this RestAPI, if, say, the back-end is on another server? If so, how? I know there's a router in react, it is possible to organize a full authorization, as the same VC? If so, how. Leave information on this, please.
Marie_Stoltenberg56 asked April 16th 20 at 11:19
1
answer

How to design a rest-resources?

Good day! Faced with the question which is confusing Let's say we have a service management user profile. The user profile corresponds to a table in database with columns: name, surname, token, etc. If I want to change information about the user(name name), I must refer to an endpoint /rest/user/ But if I want to change e....
margot40 asked April 9th 20 at 10:31