diff --git a/HowtoElasticsearch.md b/HowtoElasticsearch.md index f5345fdd..c382bb32 100644 --- a/HowtoElasticsearch.md +++ b/HowtoElasticsearch.md @@ -1231,7 +1231,7 @@ $ curl localhost:9200/planet/hacker/1?pretty=true Mise à jour du champ âge : ~~~ -$ curl -X POST localhost:9200/planet/hacker/1/_update -d '{"doc": {"age": 19}}' +$ curl localhost:9200/planet/hacker/1/_update -d '{"doc": {"age": 19}}' {"_index":"planet","_type":"hacker","_id":"1","_version":2,"result":"updated","_shards":{"total":2,"successful":1,"failed":0}} ~~~ @@ -1297,7 +1297,7 @@ $ curl -X PUT localhost:9200/planet/hacker/3 -d ' Recherchons ceux qui ont pour hobby *rollerblading* : ~~~ -$ curl -X POST localhost:9200/planet/hacker/_search?pretty=true -d ' +$ curl localhost:9200/planet/hacker/_search?pretty=true -d ' { "query": { "match": { diff --git a/HowtoFluentd.md b/HowtoFluentd.md index 9ae314c4..de18d74b 100644 --- a/HowtoFluentd.md +++ b/HowtoFluentd.md @@ -46,7 +46,7 @@ Par défaut, le démon est configuré pour capturer les logs HTTP et les renvoye On peut tester à l'aide la commande [curl](https://wiki.evolix.org/HowtocURL) : ~~~ -$ curl -X POST -d 'json={"json":"message"}' http://localhost:8888/debug.test +$ curl -d 'json={"json":"message"}' http://localhost:8888/debug.test ~~~ ## Configuration diff --git a/HowtoMeilisearch.md b/HowtoMeilisearch.md index b8d37828..4d6a13e9 100644 --- a/HowtoMeilisearch.md +++ b/HowtoMeilisearch.md @@ -176,7 +176,7 @@ curl -s -X GET https://$DOMAIN/indexes/$INDEXE/settings -H "Authorization: Beare * Supprimer tout ce qui est liée à un filtre ~~~ -curl -s -X POST https://$DOMAIN/indexes/$INDEXE/documents/delete \ +curl -s https://$DOMAIN/indexes/$INDEXE/documents/delete \ -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \ --data-binary '{ "filter": "source = redmine" }' |jq '' -r ~~~