Rework rest api
Merge pull request #5 from leonjones1974/feature/web_publish_status

Rework rest api