Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Resource

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
        } 
    }

Clone this wiki locally