mirror of
https://github.com/zhigang1992/interfake.git
synced 2026-01-12 17:23:07 +08:00
Improved CRUD example yet again
This commit is contained in:
@@ -8,7 +8,7 @@ interfake.get('/items').body({ items: [] });
|
||||
|
||||
// When an item is created, update the items set request
|
||||
var postRequest = interfake.post('/items').status(201);
|
||||
postRequest.creates.get('/items').body({ items: [
|
||||
postRequest.extends.get('/items').body({ items: [
|
||||
{ id: 1, name: 'Item 1' }
|
||||
]});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user