diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index ef9e679..076b8d2 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -314,7 +314,7 @@ modules = [ [[package]] org = "ballerinax" name = "zendesk" -version = "0.1.0" +version = "2.0.0" dependencies = [ {org = "ballerina", name = "http"}, {org = "ballerina", name = "log"}, diff --git a/ballerina/tests/mock_service.bal b/ballerina/tests/mock_service.bal index b61996d..8593347 100644 --- a/ballerina/tests/mock_service.bal +++ b/ballerina/tests/mock_service.bal @@ -27,7 +27,7 @@ http:Service mockService = service object { # Create Ticket # # + return - Create ticket - resource isolated function post api/v2/tickets(TicketCreateRequest payload) returns TicketResponse => { + resource isolated function post api/v2/tickets(@http:Payload TicketCreateRequest payload) returns TicketResponse => { ticket: { requester_id: 1, subject: "Test Ticket",