Json server in go
$ curl -X POST -H "Content-Type: application/json" -d '{"email":"admin@test.com", "password":"password"}' localhost:8080/auth
# Response
{"X-Token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs"}
$ curl -X POST \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"jsonName":"hogeJson"}' \
localhost:8080/jsons
$ curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/jsons
$ curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/jsons/1
$ curl -X PUT -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"jsonName":"piyoJson"}' \
localhost:8080/jsons/1
$ curl -X DELETE -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/jsons/2
$ curl -X POST \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"nestedJsonName": "nestedHogeJson","configuration":{"configurationName": "nestedHogeConfiguration","configuration":"High"}}' \
localhost:8080/nestedjsons
$ curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/nestedjsons
$ curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/nestedjsons/1
$ curl -X PUT -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"nestedJsonName": "nestedPiyoJson","configuration":{"configurationName": "nestedPiyoConfiguration","configuration":"Low"}}' \
localhost:8080/nestedjsons/1
$ curl -X DELETE -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/nestedjsons/2
$ curl -X POST \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"jsonName":"hogeJson"}' \
localhost:8080/listinjsons
$ curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/listinjsons
$ curl -X PUT -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"jsonName":"piyoJson"}' \
localhost:8080/listinjsons/1
$ curl -X DELETE -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/listinjsons/2
$ curl -X POST \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"pureString":"hello", "pointerString":"hello", "omitemptyString":"hello"}' \
localhost:8080/niljsons
$ curl -X POST \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"pureString":"hello"}' \
localhost:8080/niljsons
$ curl -X POST \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"pointerString":"hello"}' \
localhost:8080/niljsons
$ curl -X POST \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
-H 'Content-Type: application/json' \
-d '{"omitemptyString":"hello"}' \
localhost:8080/niljsons
$ curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjkxOTY0MjEsIm5hbWUiOiJhZG1pbiJ9.5nkp-Xr2r5rCtp-5z1DL29OMUhXRFjkpdFRO0K8mWNs" \
localhost:8080/niljsons