EventStore icon indicating copy to clipboard operation
EventStore copied to clipboard

Feature Request - Examples as PostMan / Fiddler collection

Open BoasE opened this issue 11 years ago • 13 comments

Hope this is the right place for a FeatureRequest It would be great to have the examples targeting the REST api ina fiddler / postman collection

BoasE avatar Sep 16 '15 20:09 BoasE

:+1:

We have often talking about some kind of recipe book in the office, although our thinking being around curl examples more than anything.

ianbattersby avatar Sep 21 '15 15:09 ianbattersby

This isn't a bad way to distribute examples, potentially more obvious to people than cURL commands. However, we'd have to look at auto generating the collection from a git repository. The file format for Postman looks to be JSON. This is also importable into Paw. Not sure on what Fiddler uses or whether such a thing is possible.

jen20 avatar Sep 21 '15 15:09 jen20

Fiddler can ex and import many formats like (P)CAP, IE12 NetXML, Json HTTP Archive.

I'm not sure but isn't JsonHTTP compatible to postman ?

BoasE avatar Sep 28 '15 12:09 BoasE

I could help out writing a Postman collection. You guys could host that collection via Postman, meaning users will always have an up to date definition of the api.

md-gh avatar May 24 '16 12:05 md-gh

That would be kind @FatherDougal. Thanks for the offer.

pgermishuys avatar May 24 '16 12:05 pgermishuys

I'm assuming this isn't being worked on given how long ago the last update was. I already have quite a bit of the HTTP api in a Postman - I can update what I have to make them match what is in the docs and to include the projections api for 4.0

jasonmitchell avatar Feb 11 '17 19:02 jasonmitchell

I spent a bit of time going through the docs updating my Postman collection. This is what I have at the minute: https://www.getpostman.com/collections/5841d6b0bcf6b01118d4

For the requests that need data (such as reading streams and projections) I've made the assumption the verify has been run in the test client. Some requests (like competing consumers) I have opted to keep simple in favour of people using the documentation to understand every property that can be sent in the body. There's possibly useful scenarios I have missed but I'm happy to update based on suggestions.

What is the best way to deliver this? PR to this repository doesn't really make much sense, maybe to the docs repository?

jasonmitchell avatar Feb 14 '17 16:02 jasonmitchell

I think the UI repo should have it, not the docs repo. It then can be imported from the working instance.

alexeyzimarev avatar Mar 07 '17 11:03 alexeyzimarev

lets get the curl commands (which can be imported into postman) collated. This will make it easier as there are a number of clients out there now that people use for testing HTTP apis such as Postman, Insomnia, Fiddler etc

jageall avatar Sep 27 '19 07:09 jageall

We have a swagger file already that generates the docs - https://github.com/EventStore/documentation/blob/master/http-api/swagger.json

This can be used in Paw (I do it myself), or imported into Postman (I think), or converted to other API formats relatively easily.

ChrisChinchilla avatar Sep 27 '19 14:09 ChrisChinchilla

We also have a lot of the curl commands in the docs as shell files here - https://github.com/EventStore/documentation/tree/master/code-examples

ChrisChinchilla avatar Sep 27 '19 14:09 ChrisChinchilla

So in short, I have a testable collection of all our HTTP endpoints already and export it to a wide variety of formats, just tell me what you need.

ChrisChinchilla avatar Sep 27 '19 14:09 ChrisChinchilla

I am closing this as the current plan is to deprecate the HTTP API entirely.

alexeyzimarev avatar Mar 15 '21 18:03 alexeyzimarev