I like to test an API backend which is designed as shown in the following example:
http://localhost:3000/api/v1/shops/1.json
The JSON respo
$ curl -X POST http://localhost:3000/api/v1/shops.json -d \ "shop[name]=Supermarket \ &shop[products][]=fruit \ &shop[products][]=eggs \ &auth_token=a1b2c3d4"