Fix heading levels in docs/rest.md