### Create a new plain account POST http://localhost:8080/accounts Content-Type: application/json { "id": 1, "firstName": "Sergi", "lastName": "Almar" } ### Find all accounts GET http://localhost:8080/accounts Accept: application/json ### Find account 1 GET http://localhost:8080/accounts/1 Accept: application/json ### Create a new account with an unknown field POST http://localhost:8080/accounts Content-Type: application/json { "id": 2, "firstName": "Joris", "lastName": "Kuipers", "company": "Trifork" } ### Create a new account using snake-casing POST http://localhost:8080/accounts Content-Type: application/json { "id": 1, "first_name": "Sergi", "last_name": "Almar" } ### Create some accounts with an address: Joris POST http://localhost:8080/accounts Content-Type: application/json { "id": 1, "firstName": "Joris", "lastName": "Kuipers", "address": { "street": "Vlaardingenlaan", "houseNumber": 15, "city": "Amsterdam", "country": "The Netherlands" } } ### Create some accounts with an address: Josh POST http://localhost:8080/accounts Content-Type: application/json { "id": 2, "firstName": "Josh", "lastName": "Long", "address": { "street": "Some airplane", "houseNumber": 1, "city": "Production", "country": "The Cloud" } }