The following procedures explain how to add and test new RPC or RESTful API services to the Zend Server Gateway using the 'gateway.xml' graphical editor.
This procedure describes how to add a new RPC API method to the Zend Server Gateway.
|
|
|
To add an RPC route:
|
You can easily delete the new method route. To do this, hover over the route and click -OR- right-click the new route, and select Delete. |
This procedure describes how to add a new RESTful API method to the Zend Server Gateway.
|
|
|
To add a RESTful route:
|
You can easily delete the new method route. To do this, hover over the route and click -OR- right-click the new route, and select Delete. |
This procedure describes how to test a Zend Server Gateway RPC or RESTful API method.
Important:
Testing a method route can only be performed if you have already successfully deployed the application. In the PHP Explorer, open the 'deployment.xml' file and in the Testing area, click Deploy a PHP Application. For more information on deploying applications, see Working with Deployment.
|
|
|
To test a route using the graphic editor:
|
You should receive a '200 OK' response. If you receive a '404 Not Found' error, make sure the URL at the top of the Test Service view is correct. If this problem persists, redeploy your server-side project. |
|
|
|
|
Related Links: Configuring the Zend Server Gateway Adding Validation to Method Routes |
|
|
©1999-2013 Zend Technologies LTD. All rights reserved.