### 로그인

# @name login
POST {{baseUrl}}/api/users/login HTTP/1.1
content-type: application/json

{
    "siteId": 100,
    "userId": "icontrols",
    "passwd": "icontrols123"
}

@token = {{login.response.body.AccessToken}}


### 자재목록

GET {{baseUrl}}/api/Material
    ?limit=10&siteIds=106&siteIds=107&siteIds=108
    //&BusinessFieldId=2
    //&sort.field=StockCount&sort.order=asc
    //&conditions[0].field=StockCount&conditions[0].op=eq&conditions[0].value=99997
Authorization: Bearer {{token}}

### 자재현황

GET {{baseUrl}}/api/app/Material
    ?limit=2000&siteId=1
    &BusinessFieldId=2
    //&sort.field=StockCount&sort.order=asc
    //&conditions[0].field=StockCount&conditions[0].op=eq&conditions[0].value=99997
Authorization: Bearer {{token}}

### 데일리스톡

GET {{baseUrl}}/api/app/MaterialDailyStock
    ?limit=200&siteId=1
    //&conditions[0].field=StockCount&conditions[0].op=eq&conditions[0].value=86
    &conditions[0].field=Material.MaterialId&conditions[0].op=eq&conditions[0].value=4098
    //&conditions[0].field=Date&conditions[0].op=ge&conditions[0].value=2020-02-01%2000%3A00%3A00
    //&conditions[1].field=Date&conditions[1].op=le&conditions[1].value=2020-02-29%2023%3A59%3A59.9999
Authorization: Bearer {{token}}

### 월별

GET {{baseUrl}}/api/app/MaterialMonthlyStock
    ?limit=20&siteId=1
    //&conditions[0].field=StockCount&conditions[0].op=eq&conditions[0].value=86
    &conditions[0].field=Material.MaterialId&conditions[0].op=eq&conditions[0].value=4098
    //&conditions[0].field=Date&conditions[0].op=ge&conditions[0].value=2020-02-01
    //&conditions[1].field=Date&conditions[1].op=le&conditions[1].value=2020-02-29
Authorization: Bearer {{token}}

### 자재정보

GET {{baseUrl}}/api/app/Material/1/4098
Authorization: Bearer {{token}}

### 일별 (앱)

GET {{baseUrl}}/api/app/MaterialDailyStock?siteId=115
