Download OpenAPI specification:Download
Veleta で自動生成した API Server の Golang 版のサンプル
顧客を新規登録する
| customerId required | integer <int64> (顧客ID) 顧客の識別子 |
| name required | string (氏名) [ 1 .. 16 ] characters 顧客の氏名 |
| address required | string (住所) [ 1 .. 128 ] characters 顧客の住所 |
{- "customerId": 0,
- "name": "string",
- "address": "string"
}{- "customerId": 0,
- "name": "string",
- "address": "string"
}顧客を検索する
| name | Array of strings 顧客の氏名 |
| address | Array of strings 顧客の住所 |
| limit | integer [ 1 .. 100 ] Default: 100 最大件数 |
| customerId | integer <int64> 検索済みの顧客の識別子 |
[- {
- "customerId": 0,
- "name": "string",
- "address": "string"
}
]識別子で指定した顧客を更新する
| customerId | integer <int64> 顧客の識別子 |
| customerId | integer <int64> (顧客ID) 顧客の識別子 |
| name | string (氏名) [ 1 .. 16 ] characters 顧客の氏名 |
| address | string (住所) [ 1 .. 128 ] characters 顧客の住所 |
{- "customerId": 0,
- "name": "string",
- "address": "string"
}{- "customerId": 0,
- "name": "string",
- "address": "string"
}製品を新規登録する
| productId required | integer <int64> (製品ID) 製品の識別子 |
| name required | string (製品名) [ 1 .. 64 ] characters 製品の名称 |
| pricePerUnit required | integer <int64> (標準単価) >= 0 製品の標準単価 |
{- "productId": 0,
- "name": "string",
- "pricePerUnit": 0
}{- "productId": 0,
- "name": "string",
- "pricePerUnit": 0
}製品を検索する
| name | Array of strings 製品の名称 |
| pricePerUnit | Array of integers <int64> [ items <int64 > ] 製品の標準単価 |
| limit | integer [ 1 .. 100 ] Default: 100 最大件数 |
| productId | integer <int64> 検索済みの製品の識別子 |
[- {
- "productId": 0,
- "name": "string",
- "pricePerUnit": 0
}
]識別子で指定した製品を更新する
| productId | integer <int64> 製品の識別子 |
| productId | integer <int64> (製品ID) 製品の識別子 |
| name | string (製品名) [ 1 .. 64 ] characters 製品の名称 |
| pricePerUnit | integer <int64> (標準単価) >= 0 製品の標準単価 |
{- "productId": 0,
- "name": "string",
- "pricePerUnit": 0
}{- "productId": 0,
- "name": "string",
- "pricePerUnit": 0
}注文を新規登録する
| orderId required | integer <int64> (受注ID) 注文の識別子 |
| customerId required | integer <int64> (顧客ID) 注文した顧客の識別子 |
| orderDate required | string <date> (受注日) 注文を受注した日 |
Array of objects (注文明細) 注文の明細 |
{- "orderId": 0,
- "customerId": 0,
- "orderDate": "2019-08-24",
- "details": [
- {
- "rowNumber": 1,
- "productId": 0,
- "quantity": 0,
- "pricePerUnit": 0
}
]
}{- "orderId": 0,
- "customerId": 0,
- "orderDate": "2019-08-24",
- "details": [
- {
- "rowNumber": 1,
- "productId": 0,
- "quantity": 0,
- "pricePerUnit": 0
}
]
}注文を検索する
| customerId | Array of strings 顧客の識別子 |
| orderDate | Array of strings 受注日 |
| limit | integer [ 1 .. 100 ] Default: 100 最大件数 |
| orderId | integer <int64> 検索済みの注文の識別子 |
[- {
- "orderId": 0,
- "customerId": 0,
- "orderDate": "2019-08-24",
- "details": [
- {
- "rowNumber": 1,
- "productId": 0,
- "quantity": 0,
- "pricePerUnit": 0
}
]
}
]識別子で指定した注文を更新する
| orderId | integer <int64> 注文の識別子 |
| orderId | integer <int64> (受注ID) 注文の識別子 |
| customerId | integer <int64> (顧客ID) 注文した顧客の識別子 |
| orderDate | string <date> (受注日) 注文を受注した日 |
Array of objects (注文明細) 注文の明細 |
{- "orderId": 0,
- "customerId": 0,
- "orderDate": "2019-08-24",
- "details": [
- {
- "rowNumber": 1,
- "productId": 0,
- "quantity": 0,
- "pricePerUnit": 0
}
]
}{- "orderId": 0,
- "customerId": 0,
- "orderDate": "2019-08-24",
- "details": [
- {
- "rowNumber": 1,
- "productId": 0,
- "quantity": 0,
- "pricePerUnit": 0
}
]
}