Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an easy way to stub / dummy a restful web service?

I want to create an android application, this application will make RESTful calls to a web service to obtain some data.

I know what the RESTful interface will be, but I don't want the hassle of creating my own implementation. Is there an easy way to create a stub RESTful web service that will return some static data without having to write a full blown WS application to do this?

like image 204
Jimmy Avatar asked Jan 09 '12 13:01

Jimmy


People also ask

What is a RESTful API for dummies?

A RESTful API is an architectural style for an application program interface (API) that uses HTTP requests to access and use data. That data can be used to GET, PUT, POST and DELETE data types, which refers to the reading, updating, creating and deleting of operations concerning resources.


1 Answers

Mocky.io allows you to create stub endpoints and specify the data they return via public URLs.

Runscope (disclaimer, I'm a founder) allows you to capture a real request once, then replay back the response as needed via Response Playback URLs.

like image 91
John Sheehan Avatar answered Oct 02 '22 01:10

John Sheehan