Repo for phone number management REST API
- Developed with Java 8, Spring Boot 2.1.5 and Maven 3.6.0
- Developed on Ubuntu 18.10
Below is a description of the implemented endpoints for the API, with example uses.
Retrieve a list of all phone numbers currently stored in the system and associated with a customer.
GET localhost:8080/api/v1/customers/numbers
Retrieve a list of phone numbers for one particular customer
GET localhost:8080/api/v1/customers/{id}/numbers
{id}: id of customer you wish to make request for, e.g. localhost:8080/api/v1/customers/1/numbers
Activate a phone number for a given customer
PATCH localhost:8080/api/v1/customers/{id}/numbers
{id}: id of customer you wish to make request for, e.g. localhost:8080/api/v1/customers/1/numbers
JSON containing number wishing to be activated, e.g. {"number": "01234567890"}