Service Designer and Fake Data Tutorial

In this tutorial you will learn web service prototyping in Appogram.

In ‘Services’ menu you can create a service and also create some fake data for test requests. In application you can call these services with proper parameters that matches fake data. With these facilities you can create an Appo without any backend service. You can test all features and finally create real backend web services. All web services should have simple JSON format.

1- Navigate to ‘Services’ menu.

2- Click on ‘New Service’ button Set a name and a URL for your service. URL can be parametric with using variables inside braces. For example: http://MyServer.com/GetProducts/[category] or http://MyServer.com/GetProducts?cat=[category] Choose a template for your service. Templates will help you to create services quickly. There are different types of templates, some are control specific and some are general purpose.

3- After creating a new service Click on ‘Fake Data’, then you can click on ‘New Fake Data’ and create as many fake data inputs as you need. In fake data you can define ‘Parameters’ and ‘Result’ then click on ‘Save’ button in ‘Result’ tab and view the real output in ‘generated Result’ tab, then click ‘Add’ button below the modal window.

5- When you use a control specific template, you can set control’s data properties just by re-typing text box placeholder (a short hint that describes the expected value of text box). Fake Data supports authentication services by its ‘Login’ template. In login template you can define fake username and passwords and also successful authentication JSON Web Token (JWT) payload.

4- Copy a sample fake data URL and test it from ‘Test Your Service’ above the window. In test window paste the URL and define input parameters as key values then invoke the service. You can use this test tool for web services out of Appogram with unchecking ‘Use Fake Data’ checkbox.

5- When you use a control specific template, you can set control’s data properties just by re-typing text box placeholder (a short hint that describes the expected value of text box). Fake Data supports authentication services by its ‘Login’ template. In login template you can define fake username and passwords and also successful authentication JSON Web Token (JWT) payload.