API Url

Customize

message for old buyer we just change all url method using String base not use Uri Builder anymore. We use SIMPLE WAY. Please open com.app.materialrecipe.data.Constant.java

set domain, in example your web url is :

 http://demo.dream-space.web.id/material_recipe/

please set WEB_URL like this :

 private static String WEB_URL = "http://demo.dream-space.web.id/material_recipe/";

IMPORTANT : slash character ( ' / ' ) in the end of web url is mandatory. You doesn't need to edit this method :

 public static String getURLimgRecipe(String file_name);
 public static String getURLimgCategory(String file_name);

Validate Your API

Before you check this make sure that your web hosting able to run .htaccess file

  1. Check database connection : Make sure your web response "Database Connection : Success" like this : http://demo.dream-space.web.id/material_recipe/app/services/checkResponse When you open : www.your-domain.com/thecity_folder + /app/services/checkResponse

  2. The respon wil be JSON text like this : http://demo.dream-space.web.id/material_recipe/app/services/categories When you open : www.yourdomain.com/recipe_folder + /app/services/categories

Last updated