ves-io-schema-signup-CustomAPI-ValidateRegistration

Examples of performing signup CustomAPI ValidateRegistration

Usecase:

Validate registration for a given email, type and token

Request:

Request using vesctl:

vesctl request rpc signup.CustomAPI.ValidateRegistration -i request.yaml --uri /no_auth/login/validate_registration --http-method POST

where file request.yaml has following contents:

email: user-1@ves.io
tenantType: FREEMIUM
token: some-valid-token-format

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"tenantType":"FREEMIUM","email":"user-1@ves.io","token":"some-valid-token-format"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_b001_apidocs.test/host=docker-desktop' 'https://localhost:45809/no_auth/login/validate_registration'

curl response:

HTTP/1.1 200 OK
Content-Length: 54
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:49:15 GMT
Vary: Accept-Encoding

{
  "valid_registration": false,
  "err": "EUNKNOWN"
}