Perry Hoekstra
Posts: 0
Joined: Wed May 15, 2013 8:45 pm

Test using Postman

Once I create a backend service, can I test the request/response through Postman or some other third-party REST tool?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Test using Postman

Sure, just do a curl command. When you open the Collections tab, you will see the curl commands for all operations.

Perry Hoekstra
Posts: 0
Joined: Wed May 15, 2013 8:45 pm

Test using Postman

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.

Perry Hoekstra
Posts: 0
Joined: Wed May 15, 2013 8:45 pm

Test using Postman

My assumption is that it would something along the lines of:

http://appery.io/app/project/some_gui...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Test using Postman

Hi Perry,

You can find some REST API tips in Database:
Image
To login to Database using Postman you would need to fill parameters as it's shown below:
Image
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]
Perry Hoekstra
Posts: 0
Joined: Wed May 15, 2013 8:45 pm

Test using Postman

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Test using Postman

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.

Perry Hoekstra
Posts: 0
Joined: Wed May 15, 2013 8:45 pm

Test using Postman

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Test using Postman

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:
Image

"backend service" in Appery.io it's a database, file API. You can test it using third-party tools.

Return to “Issues”