Open TomasTurina opened 3 days ago
The branch test/25-server-mock was added to work with communicator module.
The server mock acepts:
/authentication
Request
curl -X POST \
http://localhost:8080/authentication \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Accept-Charset: utf-8" \
-d '{"uuid":"agent_uuid","password":"123456"}'
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJzb21lLWF1dGgtc2VydmVyIiwic2FtcGxlIjoidGVzdCJ9.E6b_onD9_9-1rFwBVZN1I62yoy14iHXGmYKJ_RXJ-bM
## `/agents`
- Request
curl -X POST
http://localhost:8080/agents
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Accept-Charset: utf-8"
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJzb21lLWF1dGgtc2VydmVyIiwic2FtcGxlIjoidGVzdCJ9.E6b_onD9_9-1rFwBVZN1I62yoy14iHXGmYKJ_RXJ-bM"
-d '{"uuid":"agent_uuid","name":"agent_name"}'
- Response (json not yet defined)
agent_key
Description
As part of the development of the new agent MVP, it is necessary to develop a new communicator module.
Take into account the following:
stateless
andstateful
messages to the manager.commands
from the manager.For more considerations (including API endpoints), see the spike issue.