Placeholder Image

字幕表 動画を再生する

  • If you have used any modern website, then chances are you have interacted with a Web site that uses rest.

  • Even YouTube uses rest ful Urals on its site.

  • But what exactly is rest?

  • For starters?

  • Rest stands for representation state transfer.

  • And it's just a fancy way of saying that a server responds to create, read, update and dally request in a standard way.

  • The idea behind rest is to treat all server euros as access points for the various resource is on the server.

  • For example, in this euro users represents the resource about the server is exposing, as mentioned earlier arrest needs a way to create, read, update and delete.

  • These resource is, and it does so with the following five girls.

  • The 1st 2 euros did not have an I.

  • D.

  • So they act on the entire users resource.

  • While the last three girls do have an I D in their euro and thus act on Lee on a single user resource.

  • But as you may notice, there are only two distinct ur ills.

  • This is because rest uses the four basic http actions get post put and elite to determine what to do with each euro.

  • If we add in those actions to the Urals, it is much easier to see what each of the Urals does.

  • The first euro we have is the get users.

  • You are l.

  • And it is used to get a list of all users and rest.

  • When I get your O does not have an I D in acts upon the entire resource and will always return a list of every item in that resource, they get action.

  • Interested corresponds with a reading data.

  • The second euro, which is almost identical to the first, is used to create a new user in rest.

  • The post action corresponds with creation and should always be used on the entire resource by not using an i d In the euro, the third euro is another get euro.

  • But this euro is forgetting on Lee, a single user based on the I d.

  • That is in the euro.

  • The idea portion of the euro is used by rest to determine which resource from the collection of resource is it should act upon.

  • In the case of this euro, it is used to return the user with that i d The fourth girl is the most confusing of them all, but it is used to update a user with the given i.

  • D.

  • The put action in arrest corresponds with update and works very similar lead a post But instead of creating a new resource, it updates and existing resource.

  • Lastly, we have the most straightforward your all of them all, which is for deleting a user with a specific i.

  • D.

  • The delete action and rest does exactly what you would think and it deletes the resource with the given i d.

  • In order for a website to use rest fewer rules do not need to be formatted exactly the same as above.

  • For example, usually these euros would still be considered rest ful.

  • But most applications we use the previously mentioned you are Els.

  • The only thing that matters with rest is that the euro's used represent a resource in this case, a user, and that they support creating, reading, updating and deleting from that resource using the http actions get post of date and elite, and that's all there is to how rest for you are.

  • Lt's work.

  • In the next video, we're going to be covering NBC, which is the most popular architecture used to create back and Web servers.

  • We should check out that video link over here when it comes out and subscribe to the channel.

  • So you don't miss any more videos in this series.

  • Thank you very much for watching and have a good day.

If you have used any modern website, then chances are you have interacted with a Web site that uses rest.

字幕と単語

ワンタップで英和辞典検索 単語をクリックすると、意味が表示されます

A2 初級

RESTとは? (What is REST?)

  • 2 0
    林宜悉 に公開 2021 年 01 月 14 日
動画の中の単語