For module CO Control UNIT
Test status of user login with Token
Return JSON data like welcome
Call this to check system is online or ready
curl -X GET "/api/v0/production/status" -H "Content-Type: application/json"
Ruby on Rails Example
@status = RestClient.get('/api/v0/production/status', content_type: :json, accept: :json)How can access to system
1 step - return token sending rsa key public
Having received the credentials to access the development, with the UUID and RSA_KEY data you get a JWT Token
Prepare JSon information with a valid user and password used for base access system
curl -X POST "/api/v0/production/site_key_token" -d '{"auth": { authUuid: "UUID powered", authKey: 'RSA KEY Public powered'}}' -H "Content-Type: application/json"
The result is a "Bearer Token"
Like this:
{"jwt":"eyJ0eXAiOi....."}
Rails Example
data = { authUuid: "UUID powered", authKey: 'RSA KEY Public powered'}@token = RestClient.post('/api/v0/production/site_key_token', data.to_json, content_type: 'application/json', accept: :json)