Skip to content

Commit d4a96f0

Browse files
committed
update readme
1 parent 4de22b7 commit d4a96f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $response = new Response();
4040
echo $response->withArray([
4141
'status' => 'created',
4242
'id' => 1
43-
], 201); //response code 201
43+
], 200); //response code 200
4444
```
4545
response
4646
```json
@@ -93,7 +93,7 @@ use PhpRestfulApiResponse\Tests\unit\Lib\Book;
9393
echo $response->withItem(
9494
new Book('harry', 'harryosmarsitohang@gmail.com', 'how to be a ninja', 100000, 2017),
9595
new \PhpRestfulApiResponse\Tests\unit\Lib\Transformer\Book,
96-
201 //response code 200
96+
201
9797
);
9898
```
9999
response 201

0 commit comments

Comments
 (0)