You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Niels Hvid edited this page Jun 11, 2019
·
2 revisions
The resource defines a specific resource reachable on a web server
When defining a resource the following is defined:
A string serving as the identifier
The path to the resource
The HTTP method
The media type produced
Optional:
Expected key-value pairs in the query parameter map
Expected values in the HTTP body (JSON)
resource myResource{
path: "resource"
verb: GET
produces: json
parameters: "xPos" int "yPos" int
body {
someKey: string
someOtherKey: string
someInt: int
}
}