Once I create a backend service, can I test the request/response through Postman or some other third-party REST tool?
Once I create a backend service, can I test the request/response through Postman or some other third-party REST tool?
Sure, just do a curl command. When you open the Collections tab, you will see the curl commands for all operations.
But how do I discover the publicly accessible URL for this service? There is nothing in the Settings for the service nor in the Test dropdown.
My assumption is that it would something along the lines of:
Hi Perry,
You can find some REST API tips in Database:
To login to Database using Postman you would need to fill parameters as it's shown below:
You can see how to do a search in collection via Postman on the following picture:
Code: Select all
[url=https://d2r1vs3d9006ap.cloudfront.net/s3_images/901007/postman-find.png?1368710274][img]https://d2r1vs3d9006ap.cloudfront.net/s3_images/901007/postman-find_inline.png?1368710274[/img] [/url]But the service in NOT in Database. It is a simple POST service that I have setup with an Echo response. But in order to test, I wanted to figure out what the URL would be and I cannot through the service screens.
So if I create a simple service called helloWorld and want to invoke it from a browser like this:
http://appery.io/app/project/my_guid/...
How do I know what the above url is? Is my example correct?
Hello! To test service you need to set service URL and parameters. As you setup your service with an Echo response - there is no service URL and no need to test it with REST client because in response you'll get information from Echo.
We seem to be on a disconnect. Is it my understanding that any backend service I create within Appery is NOT accessible other than within an Appery mobile app? That I cannot reference the backend service with a third-party tool such as soapUI, RestClient, etc?
Looks like there is some misunderstanding with definitions. The services you create inside Appery builder through Create New -- Service (see screenshot below) are not backend services and you can't test them with a third-party tools:
"backend service" in Appery.io it's a database, file API. You can test it using third-party tools.