#HTTP delete method in ballerina

1 messages · Page 1 of 1 (latest)

atomic peak
#

Is there any examples for http delete method in ballerina?
Is the following resource function correct?
resource function delete .(@http:Payload Employee employee) returns string {
return "delete";
}

rapid jackal
#

Yes, the above resource function is correct.

#

https://www.infoq.com/articles/ballerina-fullstack-rest-api/ This article may help you with writing your service.

InfoQ

This article explores Ballerina’s intuitive syntax for writing REST APIs. We also discuss authentication, authorization, OpenAPI tool, observability, SQL/NoSQL client libraries, and key language features. At the end of this article, you will have a good understanding of why Ballerina is a prominent candidate for writing your next backend API.

lament wolf