Exemplo de utilização do framework simpleframework.
- Java 8+
- dependência instalada localmente do simpleframework
- Maven
- cURL
- Request:
curl -X POST http://localhost:9091/user -H "Content-Type: application/json" -d '{"name": "fake" , "password": "123"}'
- Response:
{"id":1,"name":"fake","password":"123"}
- Request:
curl -X GET http://localhost:9091/user/1/image/1 -H "Content-Type: application/json"
- Response:
{"id":1,"caminho":"http://fake.png"}