mod_rest/README.markdown
changeset 4481 8df6cc648963
parent 4279 bb111148d031
child 4482 7ab0c423688a
equal deleted inserted replaced
4480:125279f4a5b8 4481:8df6cc648963
    67            "type" : "chat"
    67            "type" : "chat"
    68         }'
    68         }'
    69 ```
    69 ```
    70 
    70 
    71 The `Content-Type` header is important!
    71 The `Content-Type` header is important!
       
    72 
       
    73 ### Parameters in path
       
    74 
       
    75 New alternative format with the parameters `kind`, `type`, and `to`
       
    76 embedded in the path:
       
    77 
       
    78 ```
       
    79 curl https://prosody.example:5281/rest/message/chat/john@example.com \
       
    80     --oauth2-bearer dmVyeSBzZWNyZXQgdG9rZW4K \
       
    81     -H 'Content-Type: text/plain' \
       
    82     --data-binary 'Hello John!'
       
    83 ```
    72 
    84 
    73 ### Replies
    85 ### Replies
    74 
    86 
    75 A POST containing an `<iq>` stanza automatically wait for the reply,
    87 A POST containing an `<iq>` stanza automatically wait for the reply,
    76 long-polling style.
    88 long-polling style.