|
@@ -140,12 +140,12 @@ fetch(url, {
|
|
|
> Example request:
|
|
|
|
|
|
```bash
|
|
|
-curl -X GET -G "http://localhost/api/users/{user}" \
|
|
|
+curl -X GET -G "http://localhost/api/users/1" \
|
|
|
-H "Accept: application/json"
|
|
|
```
|
|
|
|
|
|
```javascript
|
|
|
-const url = new URL("http://localhost/api/users/{user}");
|
|
|
+const url = new URL("http://localhost/api/users/1");
|
|
|
|
|
|
let headers = {
|
|
|
"Accept": "application/json",
|
|
@@ -180,12 +180,12 @@ fetch(url, {
|
|
|
> Example request:
|
|
|
|
|
|
```bash
|
|
|
-curl -X GET -G "http://localhost/api/users/{user}/edit" \
|
|
|
+curl -X GET -G "http://localhost/api/users/1/edit" \
|
|
|
-H "Accept: application/json"
|
|
|
```
|
|
|
|
|
|
```javascript
|
|
|
-const url = new URL("http://localhost/api/users/{user}/edit");
|
|
|
+const url = new URL("http://localhost/api/users/1/edit");
|
|
|
|
|
|
let headers = {
|
|
|
"Accept": "application/json",
|
|
@@ -220,12 +220,12 @@ fetch(url, {
|
|
|
> Example request:
|
|
|
|
|
|
```bash
|
|
|
-curl -X PUT "http://localhost/api/users/{user}" \
|
|
|
+curl -X PUT "http://localhost/api/users/1" \
|
|
|
-H "Accept: application/json"
|
|
|
```
|
|
|
|
|
|
```javascript
|
|
|
-const url = new URL("http://localhost/api/users/{user}");
|
|
|
+const url = new URL("http://localhost/api/users/1");
|
|
|
|
|
|
let headers = {
|
|
|
"Accept": "application/json",
|
|
@@ -255,12 +255,12 @@ fetch(url, {
|
|
|
> Example request:
|
|
|
|
|
|
```bash
|
|
|
-curl -X DELETE "http://localhost/api/users/{user}" \
|
|
|
+curl -X DELETE "http://localhost/api/users/1" \
|
|
|
-H "Accept: application/json"
|
|
|
```
|
|
|
|
|
|
```javascript
|
|
|
-const url = new URL("http://localhost/api/users/{user}");
|
|
|
+const url = new URL("http://localhost/api/users/1");
|
|
|
|
|
|
let headers = {
|
|
|
"Accept": "application/json",
|