@akshay89/mock-server-ngapimocks
Version:
Mock server implementation using ngApiMocks
30 lines (29 loc) • 484 B
JSON
{
"name": "Create Post",
"request": {
"url": "/posts",
"method": "POST",
"headers": {
"Content-Type": "application/json"
}
},
"responses": {
"ok": {
"status": 200,
"default": true,
"data": {}
},
"not_found": {
"status": 404,
"data": {
"message": "Not found"
}
},
"internal_server_error": {
"status": 500,
"data": {
"message": "Internal Server Error"
}
}
}
}