API definition and server for GPSPress backend