I needed a local mock server, so I made a simple one in PHP.
Register a user at signup.php
, show a list of users at list.php
, and remove all users at deleate.php
.
# Server Start
$ php -S localhost:8000
# Regist User
$ curl http://localhost:8000/signup.php -X POST -H "Content-Type: application/json" -d '{"name":"onojun", "age":24}'
# User List
$ curl http://localhost:8000/list.php
# Delete All User
$ curl http://localhost:8000/deleate.php