examples/store-api-tests/api.md in restspec-0.0.4 vs examples/store-api-tests/api.md in restspec-0.1
- old
+ new
@@ -8,77 +8,77 @@
Returns schema **product**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | libero |
-| code | string | expedita |
-| price | decimal | 49.18 |
-| category_id | schema_id | 1 |
-| category | embedded_schema | {:name=>"rerum"} |
-| created_at | date_time | 2014-12-15T12:37:23-05:00 |
-| updated_at | date_time | 2014-12-14T18:01:19-05:00 |
+| created_at | date_time | 2014-12-08T22:35:55-05:00 |
+| updated_at | date_time | 2014-12-02T07:52:23-05:00 |
+| name | string | doloremque |
+| code | string | voluptatem |
+| price | decimal | 61.76 |
+| category_id | schema_id | 51 |
+| category | embedded_schema | {:name=>"deserunt"} |
### Index [GET /products]
Returns schema **product**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | voluptatum |
-| code | string | blanditiis |
-| price | decimal | 77.09 |
-| category_id | schema_id | 2 |
-| category | embedded_schema | {:name=>"ipsam"} |
-| created_at | date_time | 2014-12-11T18:07:45-05:00 |
-| updated_at | date_time | 2014-12-20T22:30:23-05:00 |
+| created_at | date_time | 2014-11-27T10:18:05-05:00 |
+| updated_at | date_time | 2014-11-25T14:47:53-05:00 |
+| name | string | quaerat |
+| code | string | et |
+| price | decimal | 70.28 |
+| category_id | schema_id | 51 |
+| category | embedded_schema | {:name=>"rerum"} |
### Show [GET /products/:id]
Returns schema **product**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | distinctio |
-| code | string | blanditiis |
-| price | decimal | 55.84 |
-| category_id | schema_id | 4 |
-| category | embedded_schema | {:name=>"iure"} |
-| created_at | date_time | 2014-12-07T13:39:53-05:00 |
-| updated_at | date_time | 2014-12-07T13:45:22-05:00 |
+| created_at | date_time | 2014-12-05T13:39:27-05:00 |
+| updated_at | date_time | 2014-12-23T13:04:47-05:00 |
+| name | string | sed |
+| code | string | quam |
+| price | decimal | 81.56 |
+| category_id | schema_id | 51 |
+| category | embedded_schema | {:name=>"commodi"} |
### Update [PUT /products/:id]
Returns schema **product**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | sit |
-| code | string | ut |
-| price | decimal | 85.80 |
-| category_id | schema_id | 5 |
-| category | embedded_schema | {:name=>"qui"} |
-| created_at | date_time | 2014-12-02T15:11:53-05:00 |
-| updated_at | date_time | 2014-11-29T13:55:04-05:00 |
+| created_at | date_time | 2014-12-11T19:55:48-05:00 |
+| updated_at | date_time | 2014-12-01T18:33:17-05:00 |
+| name | string | possimus |
+| code | string | omnis |
+| price | decimal | 13.37 |
+| category_id | schema_id | 51 |
+| category | embedded_schema | {:name=>"tempora"} |
### Destroy [DELETE /products/:id]
Returns schema **product**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | aut |
-| code | string | illo |
-| price | decimal | 81.59 |
-| category_id | schema_id | 3 |
-| category | embedded_schema | {:name=>"quis"} |
-| created_at | date_time | 2014-11-25T07:30:09-05:00 |
-| updated_at | date_time | 2014-11-30T22:45:02-05:00 |
+| created_at | date_time | 2014-12-17T17:29:46-05:00 |
+| updated_at | date_time | 2014-12-22T08:20:22-05:00 |
+| name | string | quos |
+| code | string | aut |
+| price | decimal | 32.84 |
+| category_id | schema_id | 51 |
+| category | embedded_schema | {:name=>"saepe"} |
## Categories
### Create [POST /categories]
@@ -86,59 +86,59 @@
Returns schema **category**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | voluptate |
+| name | string | nam |
### Index [GET /categories]
Returns schema **category**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | odit |
+| name | string | ut |
### Show [GET /categories/:id]
Returns schema **category**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | explicabo |
+| name | string | tempore |
### Update [PUT /categories/:id]
Returns schema **category**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | quos |
+| name | string | vel |
### Destroy [DELETE /categories/:id]
Returns schema **category**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | fuga |
+| name | string | rerum |
### Products [GET /categories/:id/products]
Returns schema **product**
| Attribute | Type | Example |
|-------------|:--------------------------:|---------------:|
-| name | string | eos |
-| code | string | odit |
-| price | decimal | 41.37 |
-| category_id | schema_id | 8 |
-| category | embedded_schema | {:name=>"et"} |
-| created_at | date_time | 2014-11-24T12:34:34-05:00 |
-| updated_at | date_time | 2014-11-25T02:07:06-05:00 |
+| created_at | date_time | 2014-12-23T23:47:07-05:00 |
+| updated_at | date_time | 2014-11-29T07:40:59-05:00 |
+| name | string | corrupti |
+| code | string | aut |
+| price | decimal | 03.80 |
+| category_id | schema_id | 51 |
+| category | embedded_schema | {:name=>"qui"} |