REST API for SwarmJS