Closed Prachi-Jamdade closed 1 month ago
I noticed an error in the example request provided for the Listmonk API documentation at various places.
The documentation currently shows the following example for Basic Auth examples of Lists , Import , Media , Templates .
Lists
Import
Media
Templates
Issue:
The documentation currently shows the following example for a endpoint request:
curl -u "username:username" -X GET 'http://localhost:9000/api/templates'
This example uses the same value for both the username and password, which is incorrect.
Correction:
The correct example should differentiate the username and password, as shown below:
curl -u "username:password" -X GET 'http://localhost:9000/api/templates'
Screenshots:
Screenshot showing the incorrect example (401 Unauthorized error):
Screenshot showing the correct example (200 OK response):
Steps to Reproduce:
Expected Behavior:
The documentation should provide a correct example that successfully authenticates and returns a 200 OK response.
Hello, @knadh
I can work on this and will raise a PR to fix this in the documentation. Let me know what you think, will do it if it's a go-ahead from you
Please send a PR. Thank you.
I noticed an error in the example request provided for the Listmonk API documentation at various places.
The documentation currently shows the following example for Basic Auth examples of
Lists
,Import
,Media
,Templates
.Issue:
The documentation currently shows the following example for a endpoint request:
This example uses the same value for both the username and password, which is incorrect.
Correction:
The correct example should differentiate the username and password, as shown below:
Screenshots:
Screenshot showing the incorrect example (401 Unauthorized error):
Screenshot showing the correct example (200 OK response):
Steps to Reproduce:
Expected Behavior:
The documentation should provide a correct example that successfully authenticates and returns a 200 OK response.