/:
get:
queryParameters:
activeOnly:
displayName: activeOnly
description: return only active
type: boolean
required: false
repeat: false
responses:
"200":
body:
application/json:
type: |
{
"$schema" : "http://json-schema.org/draft-04/schema#",
"title" : "AfdelingTO",
"type" : "array",
"items" : {
"$ref" : "http://wegenenverkeer.be/rest/werf/model/afdeling.json"
}
}
/{id}:
uriParameters:
id:
displayName: id
type: number
required: false
repeat: false
get:
description: Gets one afdeling.
responses:
"200":
description: The afdeling.
body:
application/json:
type: afdeling
The generated code doesn't see the /{id} segment in the case below: