The @HttpPost annotation is used at the method
level and enables you to expose an Apex method as a REST resource. This method is called
when an HTTP POST request is sent, and creates a
new resource.
To use this annotation, your Apex method must be defined as global static.