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-build381173587_b001_apidocs.test/host=docker-desktop' 'https://localhost:58159/no_auth/login/validate_registration'

curl response:

HTTP/1.1 200 OK
Content-Length: 54
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:08:20 GMT
Vary: Accept-Encoding

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