What tasks should perform RESTful?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
32 views
Hello, I apologize in advance gentlemen, if the game ask... Began to study web service, REST , reading 3, 4 articles remained still issues namely:
1 I know that the rest can work with json, xml, html with the first two it is clear that I asked the server for the weather, it was returned to me the first or second, but third is not clear whether this is really what the web service returns the actual page to the user as html??
2 Can the client part of the rest of the service be deployed on a single server, with the server part? All the examples I have seen the client part written in Maine, it is generally written on the web servers?
3 I wrote Here is obvious and simple backend rest service, the browser make the GET request and receive records from DB, here I am, and so are the customer! why write it then??
4 Here's an example of rest service to order coffee, I'm realizing so , I went to the site bought a coma I came home, whether it is written there is the client part? there returns the rest service, the full page or it's hidden treats such as the payment coffee?
5 Antipicate user, how do it works? the user went to the site and must be auntefication to get access to the info, it turns out the client part of the rest of the service should be deployed on the server where the backend rest service, right??
Understand what wildly stupid questions but please tell me or throw off the old for this reason! I will be extremely happy! Thank you.
by | 32 views

3 Answers

0 like 0 dislike
1. json, xml, mostly. html is not met.
2. Can. Clients can be mobile app, or web client frameworks like Angular, React, Vue..... SAP. Maybe CMS to pull the data at rest.
3. Well for GET request approx. But you odete json, xml and it's not very user friendly :) and the POST is not so convenient :)
4. The website is the client part :) But simultaneously W this API can work and Android with coral. The same REST can be part of a "normal" website. Now, almost every CMS has a REST API out of the box, or with modules/plugins (WordPress, Drupal, Magenta....)
5. Autentifikaciju doing with JWT, oAuth. And on the server to implement processing of access rights, etc.
by
0 like 0 dislike
1. He did not meet, but I suppose that for widgets some of the rules will be.
2. The rest, of course, written on the servo. And the client even Baba Yaga, should not rest to worry. Unless specifically banned.
3. p. 2
4.5. no. the authentication Protocol can either be invented. Enough that he'd been stateless.

Shouldn't mix the rest as client and server at the same time. The rest server only.
by
0 like 0 dislike
REST is just an agreement about how the server should communicate with the client. Your question class "What tasks should perform the Russian language".
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
5 answers
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
110,608 questions
257,187 answers
0 comments
40,796 users