Paste: POST example

Author: doublec
Mode: factor
Date: Fri, 19 Jun 2020 12:26:05
Plain Text |
<dispatcher>
<action>
  [
    <response>
      200 >>code 
      "application/json" >>content-type
      request get post-data>> data>> json> 
      "name" swap at >>body 
  ] >>submit
"test" add-responder
main-responder set-global

Annotation: testing post example

Author: doublec
Mode: shellscript
Date: Fri, 19 Jun 2020 12:28:52
Plain Text |
$ curl -d '{"name":"foo"}' -H "Content-Type: application/js application/json" -X POST http://127.0.0.1:8888/test
foo

New Annotation

Summary:
Author:
Mode:
Body: