REST server

All data returned is JSON formatted. When submitting data, submit it as JSON.

GET /api/addresses

Returns a list of all the addresses.

output

GET /api/addresses/{id}

Returns a specific address identified by address id. Output is JSON formatted.

output

POST /api/addresses

Insert into the database a new address. Returns same address with addition of newly allocated id. Operation is idempotent.

post body
output

DELETE /api/addresses/{id}

Delete the address using the specified id.

output

PUT /api/addresses/{id}

An idempotent operation that replaces the address at {id} location with another address.

put body
output