Practice implementation of API read and write endpoints, and API client