pgs_server function

PGS REST API server