Skip to content

Commit d5d9827

Browse files
authored
Merge pull request #99 from antoniovmonge/master
2 parents 6a29242 + 81d9655 commit d5d9827

File tree

1 file changed

+4
-4
lines changed
  • docs/docs/01_course_intro/04_what_is_rest_api

1 file changed

+4
-4
lines changed

docs/docs/01_course_intro/04_what_is_rest_api/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ An API client can be any device, such as a web app or a mobile app.
8484

8585
### Making an API for your own consumption
8686

87-
Make software companies make APIs that only they use (so they aren't fully public).
87+
Many software companies make APIs that only they use (so they aren't fully public).
8888

8989
Here's an example. You're making a multiplayer mobile game, and you need to store information about the moves that your character is making.
9090

@@ -109,7 +109,7 @@ REST APIs deal in resources, so every individual "thing" that can be named is a
109109
The main characteristics (or constraints) of a REST API are:
110110

111111
1. **Uniform interface**. Whichever way clients should access a certain resource should also be the way the access other resources. Clients should have a single way to retrieve resources.
112-
2. **Client-server**. Clients should know the endpoints of the API, but they should not be coupled to the development of the API. A client or a servevr may be swapped out for a different implementation without the other noticing.
112+
2. **Client-server**. Clients should know the endpoints of the API, but they should not be coupled to the development of the API. A client or a server may be swapped out for a different implementation without the other noticing.
113113
3. **Stateless**. The server (API) doesn't store anything about previous client requests. Each client request is treated as a brand new client. If the client needs the server to personalize the response, then the client must send the server whatever information the server needs in order to do so.
114114
4. **Cacheable**. The client or server must be able to cache the resources returned by the API. This is a very general constraint, but it's an important one.
115115
5. **Layered system**. REST APIs may be developed as multiple layers, where each layer interacts [only with the layer above and below it](https://excalidraw.com/#json=or3Umoigss4yIeuKg3cO8,qH6uDDCXc7DSjweqNvlmzw).
@@ -156,7 +156,7 @@ We'll deal with user authentication in a later section, but that's what the lock
156156
| `GET` | `/store` | Get a list of all stores. |
157157
| `POST` | `/store` | Create a store. |
158158
| `GET` | `/store/{id}` | Get a single store, given its unique id. |
159-
| `POST` | `/store/{id}` | Delete a store, given its unique id. |
159+
| `DELETE` | `/store/{id}` | Delete a store, given its unique id. |
160160

161161
### Items
162162

@@ -191,4 +191,4 @@ Then, over the following sections, we'll improve on this REST API. We'll add:
191191
- Add user authentication.
192192
- Add item tagging.
193193
- Add an admin panel so changing data manually is a bit easier.
194-
- And much more!
194+
- And much more!

0 commit comments

Comments
 (0)