Added a server API and tests
Formatting