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 '{"tenant_type":"FREEMIUM","email":"user-1@ves.io","token":"some-valid-token-format"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build2547058132_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' 'https://localhost:54455/no_auth/login/validate_registration'
curl response:
HTTP/1.1 200 OK
Content-Length: 54
Content-Type: application/json
Date: Fri, 08 Sep 2023 16:04:07 GMT
Vary: Accept-Encoding
{
"valid_registration": false,
"err": "EUNKNOWN"
}