How to build a RESTful API?

前端 未结 7 1692
广开言路
广开言路 2020-11-27 09:43

The issue is this: I have a web application that runs on a PHP server. I\'d like to build a REST api for it.
I did some research and I figured out that REST api uses HTT

7条回答
  •  孤独总比滥情好
    2020-11-27 10:03

    As simon marc said, the process is much the same as it is for you or I browsing a website. If you are comfortable with using the Zend framework, there are some easy to follow tutorials to that make life quite easy to set things up. The hardest part of building a restful api is the design of the it, and making it truly restful, think CRUD in database terms.

    It could be that you really want an xmlrpc interface or something else similar. What do you want this interface to allow you to do?

    --EDIT

    Here is where I got started with restful api and Zend Framework. Zend Framework Example

    In short don't use Zend rest server, it's obsolete.

提交回复
热议问题