Not seeing server-side scripts executed when using a service path {ID} such as /myservice/{ID}


#1

Perhaps I’m doing something wrong here with RWS server-side scripts, but I don’t see service events executing my script code when tailing the debug log when using a service path that includes an {ID}. If anyone has suggestions let me know. Take a look at the following service definition:

{
“swagger”: “2.0”,
“info”: {
“version”: “2.0”,
“title”: “My API Service”
},
“paths”: {
"/myservice/v1/user": {
“get”: {
“tags”: [
“user”
]
}
},
"/myservice/v1/user/{id}": {
“parameters”: [
{
“name”: “id”,
“description”: “ID of user to retrieve”,
“type”: “string”,
“in”: “path”,
“required”: true
}
],
“get”: {
“tags”: [
“user”
],
“summary”: “getMyServiceUser() - Retrieve one User.”,
“operationId”: “getMyServiceUser”,
“x-publishedEvents”: [
“myservice.v1.user.read”
],
“parameters”: [],
“responses”: {
“200”: {
“description”: “Success”,
“schema”: {
"$ref": “#/definitions/Success”
}
},
“default”: {
“description”: “Error”,
“schema”: {
"$ref": “#/definitions/Error”
}
}
}
}
}
},
“definitions”: {
“Success”: {
“type”: “object”,
“properties”: {
“success”: {
“type”: “boolean”,
“description”: “True when API call was successful, false or error otherwise.”
}
}
},
“Error”: {
“type”: “object”,
“properties”: {
“code”: {
“type”: “integer”,
“format”: “int32”,
“description”: “Error code.”
},
“message”: {
“type”: “string”,
“description”: “String description of the error.”
}
}
}
},
“tags”: [
{
“name”: “myservice”,
“description”: “myservice”
}
],
“resourcePath”: “/myservice”,
“produces”: [
“application/json”
],
“consumes”: [
“application/json”
]
}