jupyter / kernel_gateway_demos

Demos associated with the kernel gateway incubator project
BSD 3-Clause "New" or "Revised" License
152 stars 76 forks source link

Can I use POST methods? #44

Closed guilhermecgs closed 7 years ago

guilhermecgs commented 7 years ago

All the examples use GET methods...

Can I use POST methods also? Can you provide examples?

poplav commented 7 years ago

https://github.com/jupyter/kernel_gateway_demos/blob/b7fd80bda9e9b99f0c450c72ea5dc5aff55bd989/swagger-notebook-service/swagger-petstore-service/SwaggerPetstoreApi.ipynb

poplav commented 7 years ago

https://github.com/jupyter/kernel_gateway_demos/search?utf8=%E2%9C%93&q=post&type=

parente commented 7 years ago

Within the main repository, the API intro notebook has an example using the most common HTTP verbs, including POST: https://github.com/jupyter/kernel_gateway/blob/master/etc/api_examples/api_intro.ipynb

The http-mode documentation has a POST example in this section: http://jupyter-kernel-gateway.readthedocs.io/en/latest/http-mode.html#setting-the-response-status-and-headers