Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Latest commit

 

History

History
62 lines (50 loc) · 1.71 KB

File metadata and controls

62 lines (50 loc) · 1.71 KB

Explain RMap Agent Service

Provides link to API documentation and a list of available HTTP verbs for the Agent path.

Request

HTTP Method & Path

OPTIONS /agents

Example URL: https://test.rmap-hub.org/api/agents

Request Headers

none

Request Body

none

Response

Response Headers

Header Value
Allow HEAD, OPTIONS, GET
Link <https://link_to_documentation>; rel="http://purl.org/dc/terms/description"

Response Body

{"description":"https://link_to_documentation"}

Possible Response Codes

Code Description
200 OK
500 Internal server error
503 Service unavailable

Behavior

  1. If the system is working correctly, an OK response will be returned with a list of available HTTP methods in the header, a link to the technical documentation as specified in the rmapapi.documentationPath property, and information about the API as JSON in the body.

Example

Request

curl -i -X OPTIONS https://test.rmap-hub.org/api/agents

Response

HTTP/1.1 200 OK
Allow: HEAD,OPTIONS,GET
Link: <https://github.com/rmap-project/rmap-documentation/>;rel="http://purl.org/dc/elements/1.1/description"

{"description":"http://purl.org/dc/elements/1.1/description"}