fix [docs]: correct invalid example request of basic auth in docs (#1946)

Co-authored-by: Prachi Jamdade <prachiii@Prachis-Laptop.local>
This commit is contained in:
Prachi 2024-07-18 18:55:21 +05:30 committed by GitHub
parent 326fc300ed
commit 888e33e5e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 15 deletions

View file

@ -16,7 +16,7 @@ Retrieve the status of an import.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/import/subscribers'
curl -u "username:password" -X GET 'http://localhost:9000/api/import/subscribers'
```
##### Example Response
@ -41,7 +41,7 @@ Retrieve logs related to imports.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/import/subscribers/logs'
curl -u "username:password" -X GET 'http://localhost:9000/api/import/subscribers/logs'
```
##### Example Response
@ -85,7 +85,7 @@ Stop and delete an ongoing import.
##### Example Request
```shell
curl -u "username:username" -X DELETE 'http://localhost:9000/api/import/subscribers'
curl -u "username:password" -X DELETE 'http://localhost:9000/api/import/subscribers'
```
##### Example Response

View file

@ -29,7 +29,7 @@ Retrieve lists.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/lists?page=1&per_page=100'
curl -u "username:password" -X GET 'http://localhost:9000/api/lists?page=1&per_page=100'
```
##### Example Response
@ -85,7 +85,7 @@ Retrieve a specific list.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/lists/5'
curl -u "username:password" -X GET 'http://localhost:9000/api/lists/5'
```
##### Example Response
@ -124,7 +124,7 @@ Create a new list.
##### Example Request
```shell
curl -u "username:username" -X POST 'http://localhost:9000/api/lists'
curl -u "username:password" -X POST 'http://localhost:9000/api/lists'
```
##### Example Response
@ -164,7 +164,7 @@ Update a list.
##### Example Request
```shell
curl -u "username:username" -X PUT 'http://localhost:9000/api/lists/5' \
curl -u "username:password" -X PUT 'http://localhost:9000/api/lists/5' \
--form 'name=modified test list' \
--form 'type=private'
```

View file

@ -15,7 +15,7 @@ Get an uploaded media file.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/media' \
curl -u "username:password" -X GET 'http://localhost:9000/api/media' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------093715978792575906250298'
```
@ -51,7 +51,7 @@ Upload a media file.
##### Example Request
```shell
curl -u "username:username" -X POST 'http://localhost:9000/api/media' \
curl -u "username:password" -X POST 'http://localhost:9000/api/media' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------183679989870526937212428' \
--form 'file=@/path/to/image.jpg'
```
@ -86,7 +86,7 @@ Delete an uploaded media file.
##### Example Request
```shell
curl -u "username:username" -X DELETE 'http://localhost:9000/api/media/1'
curl -u "username:password" -X DELETE 'http://localhost:9000/api/media/1'
```
##### Example Response

View file

@ -20,7 +20,7 @@ Retrieve all templates.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/templates'
curl -u "username:password" -X GET 'http://localhost:9000/api/templates'
```
##### Example Response
@ -56,7 +56,7 @@ Retrieve a specific template.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/templates/1'
curl -u "username:password" -X GET 'http://localhost:9000/api/templates/1'
```
##### Example Response
@ -90,7 +90,7 @@ Retrieve the HTML preview of a template.
##### Example Request
```shell
curl -u "username:username" -X GET 'http://localhost:9000/api/templates/1/preview'
curl -u "username:password" -X GET 'http://localhost:9000/api/templates/1/preview'
```
##### Example Response
@ -179,7 +179,7 @@ Set a template as the default.
##### Example Request
```shell
curl -u "username:username" -X PUT 'http://localhost:9000/api/templates/1/default'
curl -u "username:password" -X PUT 'http://localhost:9000/api/templates/1/default'
```
##### Example Response
@ -213,7 +213,7 @@ Delete a template.
##### Example Request
```shell
curl -u "username:username" -X DELETE 'http://localhost:9000/api/templates/35'
curl -u "username:password" -X DELETE 'http://localhost:9000/api/templates/35'
```
##### Example Response