Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82dab89

Browse files
author
Noer Paanakker
committed
expand on crud in reading week 1
1 parent b862f2f commit 82dab89

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

week2/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@ REST stands for Representational State Transfer. This means that when a client r
1717

1818
If this seems very abstract to you, don't worry, REST is only a concept, an idea of how applications should be organized.
1919

20-
The world of `REST` consists of two things: resources and actions (request and response).
20+
The world of `REST` consists of two things: resources and operations (Creating, Reading, Updating, Deleting).
2121

2222
A `resource` can be any object, real or imaginary. On Instagram for example, a resource can be a user, a photo or a hashtag. REST offers a way to expose information about its resources. For example, for Instagram, the state of a user (the resource), contains the user's name, the number of posts that user has on Instagram, how many followers they have, and more. Resources have names e.g. _users_, _photos_ and _hashtags_ and each object in resource has an identifier. For example, a _user_ has a username.
2323

24-
REST also enables clients to take actions on those resources, such as create new resources (e.g. create a new user) or change existing resources (e.g. edit a post).
24+
REST also enables clients to take actions on those resources. We call these actions `CRUD` operations:
25+
26+
- Creating new resources, such as videos/images/text files, etc.
27+
- Retrieving those files and reading them.
28+
- Updating the content of those files.
29+
- Deleting those files.
2530

2631
The most important features of REST are:
2732

0 commit comments

Comments
 (0)