An implemented example of API Layer