Yii restful request 405

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

Mar.18,2021

can you post the code of urlManager and the accessed Controller under your api application configuration file?

< hr >

look carefully at the official documents. Your rules is missing a layer of brackets, and goods should be lowercase

.
        'urlManager' => [
            'enablePrettyUrl' => true,
            'showScriptName' => false,
            'enableStrictParsing' =>false,
            'rules' => [
                [
                    'class' => 'yii\rest\UrlRule',
                    'controller' => 'goods',
                ],
            ],
        ],
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c26f48-15d6c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c26f48-15d6c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?