From b24e61dcaa869114f4eb7013fdf1a005528c32bf Mon Sep 17 00:00:00 2001 From: Tobias Sette Date: Fri, 2 Feb 2024 16:31:36 -0300 Subject: [PATCH] imp(posts.md): improve curl examples --- reference/posts.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reference/posts.md b/reference/posts.md index 42f840d..ee9c97f 100644 --- a/reference/posts.md +++ b/reference/posts.md @@ -715,6 +715,10 @@

Definition

POST /wp/v2/posts + +

Example Request

+ + $ curl -X POST --user "myApplicationUser:myPassword" -d '{"title": "Some title"}' http://example.com/wp-json/wp/v2/posts
@@ -935,7 +939,7 @@

Example Request

- $ curl -X POST https://example.com/wp-json/wp/v2/posts/<id> -d '{"title":"My New Title"}' + $ curl -X POST --user "myApplicationUser:myPassword" https://example.com/wp-json/wp/v2/posts/<id> -d '{"title":"My New Title"}'