All URIs are relative to http://agentplatform.grs.uh.cu/api/v1
Method | HTTP request | Description |
---|---|---|
EditAgent | Post /editAgent | |
GetAgent | Get /getAgent/{Name} | |
GetAgentsByFunction | Get /getAgentsForFunction/{Name} | |
GetAgentsNames | Get /getAllAgentsNames | |
GetPeers | Get /getPeers | |
GetSimilarAgent | Get /getSimilarAgents/{Name} | |
RegisterAgent | Post /registerAgent |
EditAgent(ctx, body)
Edit a registered Agent in the platform
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | Agent | Agent to edit |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Addr GetAgent(ctx, name)
Get the agent that follow a simple criteria
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of the Agent |
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[][]Addr GetAgentsByFunction(ctx, name)
Get the agents that match with the function name passed as params
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of the Function |
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]string GetAgentsNames(ctx, )
Get all agents names registered in the platforms
This endpoint does not need any parameter.
[]string
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Addr GetPeers(ctx, )
Return all peers connected to the platform network
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]string GetSimilarAgent(ctx, name)
Get the agents that are similars to the agent passed as paramerter
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string | Name of the Agent |
[]string
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegisterAgent(ctx, body)
Register a new Agent in the platform
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | Agent | Agent to register |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]