27
モックデータのつくり方
Postman やブラウザで出力を確認
{
"body":
{
"value": [
{
"customer_id": 1,
"active": 1,
"address_id": 5,
"create_date": "2006-02-14T22:04:36.000Z",
"email": "
[email protected]",
"first_name": "MARY",
"last_name": "SMITH",
"last_update": "2006-02-15T04:57:20.000Z",
"store_id": 1
}
],
},
/*
* Checkout the HTTP RFC for more info:
* https://www.rfc-editor.org/rfc/rfc9110#name-status-codes
*/
statusCode: 200,
}
モックデータ