jcce-market/rest-test.http

122 lines
3.1 KiB
HTTP

###
GET http://127.0.0.1:8015/image/pageList?page=10&size=7
###
GET http://127.0.0.1:8015/image/selectBySystemName?systemName=Debian
###
GET http://127.0.0.1:8015/image/systemNameList
###
GET http://127.0.0.1:8015/provide/pageList?page=1&size=10&computingResourceId=9&name=200P
### id
GET http://127.0.0.1:8015/provide/detail?id=1686222474276114432
###
POST http://127.0.0.1:8015/provide/create
Content-Type: application/json
{
"id": 2,
"name": "广:512P200P",
"domain": "",
"business": "",
"computingResourceId": 9,
"computingCardId": 19,
"computeNum": 28,
"memory": 256,
"vram": 32,
"computingCenterId": 2,
"chargeType": 1,
"userId": null,
"systemDiskCategory": 0,
"systemDiskSize": 100,
"internetMaxBandwidthOut": 100,
"imageType": 0,
"imageId": null,
"priceUnit": 3,
"durationPrice": 7.20,
"type": 0,
"description": null,
"clickNum": 0,
"status": true,
"version": 1,
"deleted": 0,
"createTime": "2023-07-30T19:56:56",
"updateTime": null,
"computingResourceName": "NPU",
"computingCenterName": "广",
"computingCardName": "ASIC"
}
### id
GET http://127.0.0.1:8015/consumer/detail?id=1686225260782948352
###
GET http://127.0.0.1:8015/consumer/pageList?page=1&size=10
###
POST http://127.0.0.1:8015/consumer/create
Content-Type: application/json
{
"id": 1,
"name": "GPU/NPU 300 P",
"domain": null,
"business": null,
"computingResourceId": 9,
"computingCardId": 20,
"computeNum": 24,
"memory": 128,
"vram": 16,
"computingCenterId": 2,
"chargeType": 0,
"userId": null,
"systemDiskCategory": 0,
"systemDiskSize": 1000,
"internetMaxBandwidthOut": 1000,
"imageType": 0,
"imageId": null,
"amount": 10,
"priceUnit": 1,
"durationAmount": 2,
"type": 0,
"description": null,
"dockingPerson": null,
"dockingPhone": null,
"consumerStatus": 0,
"clickNum": 1,
"status": true,
"version": 2,
"deleted": 0,
"createTime": "2023-07-30T19:56:56",
"updateTime": "2023-07-30T23:32:02",
"computingResourceName": "NPU",
"computingCenterName": "广",
"computingCardName": "Ascend 910"
}
### id
GET http://127.0.0.1:8015/sysDictItem/child/12
###
GET http://127.0.0.1:8015/sysDictItem/computingCenter
###
GET http://127.0.0.1:8015/sysDictItem/computingResource
###
GET http://127.0.0.1:8015/sysDictItem/computingCardType
### id,
GET http://127.0.0.1:8015/consumer/recommend?consumerId=1
### 7
GET http://localhost:8015/provide/dailyStatic?dimension=week
### 30
GET http://localhost:8015/provide/dailyStatic?dimension=month
### 365
GET http://localhost:8015/provide/dailyStatic?dimension=year