# Company features blueprint

### FLOWCHART

<div drawio-diagram="49"><img src="https://documentation.onindonesia.id/uploads/images/drawio/2024-01/drawing-3-1705914589.png" alt=""/></div>


---

### API Specification

#### Company - feature

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td><td>**Authentication**</td></tr><tr><td><div><div>/feature/company/list</div></div></td><td>GET</td><td> </td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-endpoint-method-serv" style="border-collapse: collapse; width: 100%; height: 59.757px;"><colgroup><col style="width: 29.5467%;"></col><col style="width: 45.5054%;"></col><col style="width: 24.9617%;"></col></colgroup><tbody><tr style="height: 29.8785px;"><td style="height: 29.8785px;">**Type**  
</td><td style="height: 29.8785px;">**Token source**  
</td><td style="height: 29.8785px;">**Server**  
</td></tr><tr style="height: 29.8785px;"><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td><td style="height: 29.8785px;"> </td></tr></tbody></table>

##### Param request

<table border="1" id="bkmrk-properties-propertie" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 34.7245%;"></col><col style="width: 29.676%;"></col><col style="width: 35.5995%;"></col></colgroup><tbody><tr><td>**Properties**  
</td><td>**Required**</td><td>**Description**</td></tr><tr><td><div><div>company_id</div></div></td><td> </td><td>  
</td></tr></tbody></table>

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">Body request example</p>

```json
{
    "feature_list": [
        {
            "features_id": 1,
            "module_id": 1,
            "name": "TX-A",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 2,
            "module_id": 1,
            "name": "TX-B",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 3,
            "module_id": 2,
            "name": "HR-A",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 4,
            "module_id": 2,
            "name": "HR-B",
            "group": null,
            "created_at": "2024-01-18T03:33:02.980Z",
            "updated_at": "2024-01-18T03:33:02.980Z"
        },
        {
            "features_id": 5,
            "module_id": 3,
            "name": "VO-A",
            "group": null,
            "created_at": "2024-01-18T03:39:58.760Z",
            "updated_at": "2024-01-18T03:39:58.760Z"
        },
        {
            "features_id": 6,
            "module_id": 3,
            "name": "VO-B",
            "group": null,
            "created_at": "2024-01-18T03:39:58.760Z",
            "updated_at": "2024-01-18T03:39:58.760Z"
        }
    ]
}
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">Body request example</p>

```javascript
insert code here
```

</details>