Restful API for SWAPR