Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does anyone know of a simple API explorer that I can use to make a nice test page for my web service? I am aware of the following, and these are similar to what I want:

http://api-playground-demo.hipo.biz/

https://github.com/mashery/iodocs

But both of those fall down in some way - the Django one is close, but it only lets you send POST data as JSON, and I'm just using plain multipart/form-data key/value pairs. It is also a bit of a pain to set up as it requires Django, whereas really you should be able to do all of this as a static site in client-side javascript.

IODocs also has an insane list of requirements.

So ideally I'd like something very similar to the Django API playground, but with the following features:

  • Can substitute variables into the GET parameters, and the URL. I.e. http://foo.com/{variable1}/bar?q={variable2}
  • Lets me send play form-encoded POST data, instead of (or in addition to) JSON
  • Doesn't have any ridiculous server-side dependencies.
  • Ideally, lets me send files.
  • Ideally, lets me send custom headers which include variables, e.g. X-Auth-Code: {variable3}

Surely someone must have done this?

share|improve this question

1 Answer 1

Found Swagger which with some minor adjustments does everything I want, including sending files and custom headers.

The only thing I had to fix was a small bug where optional POST fields are sent with the value "undefined" instead of being omitted entirely (or being sent as empty strings).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.