Best practices for implementing REST interfaces