Contact-list that provides its data via REST-interface.
Goals of this assignment:
- Understand how to add a REST-interface to your server.
First steps with the RestController
- Write a REST-Interface that allows to get all contacts
- Test the interface using Postman (or a similar tool)
- Extend the REST-Interface to get a single contact by ID
- Write an integration tests for the REST-interface from assignment 1
- Add the possibility to search for a contact by name via the REST-interface
- The required functionality is already provided in ContactService
- Write a simple integration test for the new functionality
- Extend the REST-interface with possibilities to create, update, and delete contacts
- Which HTTP status code should be returned if a resource cannot be found?
- Which one should be returned if a resource is created?