# 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**

<div align="left"><img src="https://782879718-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LL8joAfLEif2QdT7tiH%2F-LL8m36ADx-HxsOw4t3D%2F-LL8xQ8Y13nSf-fG8RpM%2Fimage_1.jpg?alt=media&#x26;token=b5fa66a8-3709-49b4-9b8c-ced9c2b7cfda" alt=""></div>

set domain, in example your web url is :

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

please set WEB\_URL like this :

```java
 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 :&#x20;

```java
 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 : \
   [\
   &#xNAN;**`http://demo.dream-space.web.id/material_recipe/app/services/checkResponse`**](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`**](http://demo.dream-space.web.id/material_recipe/app/services/categories)\
   When you open : www.yourdomain.com/recipe\_folder + /app/services/categories



