Pas besoin de spécifier « curl -X POST » dans ces cas là

This commit is contained in:
Jérémy Lecour 2024-04-02 10:55:44 +02:00 committed by Jérémy Lecour
parent f9c20802aa
commit 73f21b1133
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
3 changed files with 4 additions and 4 deletions

View file

@ -1231,7 +1231,7 @@ $ curl localhost:9200/planet/hacker/1?pretty=true
Mise à jour du champ âge : 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}} {"_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* : 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": { "query": {
"match": { "match": {

View file

@ -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) : 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 ## Configuration

View file

@ -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 * 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' \ -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' \
--data-binary '{ "filter": "source = redmine" }' |jq '' -r --data-binary '{ "filter": "source = redmine" }' |jq '' -r
~~~ ~~~