请问REST API如何设计
Jun 06, 2016 pm 08:14 PM
现在需要使用php做一个云盘,实现文件的上传、下载、删除以及文件夹的浏览等。
请问如何设计rest api接口?
比如上传test.txt文件到/files目录设计成:POST/files/test.txt。下载test.txt的话设计成GET/files/test.txt 可以吗?
有没有具体的实例啊?
回复内容:
现在需要使用php做一个云盘,实现文件的上传、下载、删除以及文件夹的浏览等。
请问如何设计rest api接口?
比如上传test.txt文件到/files目录设计成:POST/files/test.txt。下载test.txt的话设计成GET/files/test.txt 可以吗?
有没有具体的实例啊?
推荐 http://www.ruanyifeng.com/blog/2014/05/restful_api.html
restful是一种指南,或者说是规范

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
