Php Rest Api Best Practices