Basic api setup for server side.