the default RESTful, in the advanced application template prompts 405 Method Not Allowed [version 2.0] except GET
I follow the similar method of creating a new application body in the advanced application template in this article, copy the Backend application, create an api application, and create a RESTful Controller for User with reference to the official RESTful Web service. After
completes, you can successfully GET the contents of the database, but you cannot POST or other Action the User.
I have improved the contents of the files in the Common and api directories several times. I didn"t find the setting for Verb. Is there anything I missed? How can I complete other operations on User. (POST, PUT, DELETE, etc.)
{"name":"Method Not Allowed","message":"Method Not Allowed. This URL can only handle the following request methods: GET, HEAD.","code":0,"status":405,"type":"yii\\web\\MethodNotAllowedHttpException"}
there are also some requests for 404