Make /discover and /register compliant with the new documentation.