When I was learning Restler 3, I saw the CURD of Example and used Firefox’s Rest Client to use GET and POST. Both are OK, but using PUT and DELETE appears,
I searched for information on the Internet. I looked for the "405 Method not Allowed" problem in Microsoft Bing, Yahoo (installed B...), and Baidu, but I couldn't understand it.
Finally, I saw before that Restler 3 has Restler API Explorer, so I tried to install Restler API Explorer Let's take a look. After I installed it, I saw the method I wrote listed in the Swagger UI.
Pictured:
My data:
I performed the DELETE operation, as shown below:
After the operation is completed:
,
I use RespectRelational
for DB operations in Restler 3”405 Method Not Allowed“The problem is finally solved, you can continue to look at the Example of Restler 3 and learn, hehe.
Restler 3’s github address: https://github.com/Luracast/Restler
The address of Restler API Explorer: https://github.com/Luracast/Restler-API-Explorer
Generally speaking, posting to a static file will display 405.
It should be that your nginx or apche does not rewrite the real php file.
The following are all the most likely causes and solutions:
1. System delays caused by temporary busyness of the web page system. Just like we cannot post normally every time, there is a buffer period.
2. Check whether the network cable and broadband connection are connected to your computer, and check whether there is a fault.
3. There are too many junk files on the computer hard disk, which directly occupy the memory, causing the speed of opening other web pages to be too slow.
4. The computer system loopholes are forgotten to be repaired in time, causing the virus to spread and directly affecting the Internet speed.
5. It may be a problem with your computer operating system. It is recommended to reinstall the system
6. The webpage itself is under system maintenance and it will take some time to see it normally
The above is the most complete reason and solution. Please refer to the original poster and wish you good luck, O(∩_∩)OThank you