Annotated endpoint sample update

This update the sample to the latest development such as the ability
to define  flexible method arguments.