News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zumba Engineering Blog:
Creating a testing interface for your API
August 16, 2012 @ 09:56:36

In a new post to the Zumba Engineering blog, they share an interface they use for testing on their API (after working with something similar from another company).

They provide the documentation to the methods and I saw they have a simple interface to test their methods: Ooyala API Scratchpad. This interface was very useful while we integrate with them and I thought: "Why we don't have one interface like that for our API?" I started a page with Twitter Bootstrap to have a similar functionality, which the goal was to get an interface easy to developers see the response for multiple HTTP protocols, set the parameters, etc.

The interface uses Javascript to make requests over to a RESTful API and returns the response JSON directly to the page. It's a little bit customized to how their API works, but it's a good foundation for anyone looking to implement something similar. You can get the full code for it over on github.

0 comments voice your opinion now!
testing interface bootstrap rest api javascript


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: AJAX and PHP Part 4 - Forms and JavaScript Limitations

Chronosight Blog: Inline AJAX Calendar using PHP

Kristo Vaher: What you should know about API-centric web development and design

Federico Cargnelutti's Blog: Building a RESTful Web API with PHP and Apify

Dave Marshall: Probing Test Suite Quality with Mutation Testing


Community Events

Don't see your event here?
Let us know!


video extension conference api introduction voicesoftheelephpant language framework interview psr7 library podcast release series community opinion development laravel unittest laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework