Skip to content

Jearyhao/fzuSE2024

 
 

Repository files navigation

SE2024

2024软工实践-时空数据管理系统 使用golang-gin框架 采用skeleton脚手架 restful风格

在postman中测试chart

饼图

  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/pie
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Pie Chart",
  "data": [
    {"name": "Category A", "value": 30},
    {"name": "Category B", "value": 70}
  ]
}
  1. Send Request:
  • Click the Send button to send the request

折线图

  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/line
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Line Chart",
  "data": [
    {"x": 1, "y": 10},
    {"x": 2, "y": 20},
    {"x": 3, "y": 30}
  ]
}
  1. Send Request:
  • Click the Send button to send the request

柱状图

  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/bar
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Bar Chart",
  "data": [
    {"label": "A", "value": 10},
    {"label": "B", "value": 20},
    {"label": "C", "value": 30}
  ]
}
  1. Send Request:
  • Click the Send button to send the request

折线柱状混合图

  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/linebarmixed
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Mixed Chart",
  "line_data": [
    {"x": "A", "y": 10},
    {"x": "B", "y": 20},
    {"x": "C", "y": 30}
  ],
  "bar_data": [
    {"label": "A", "value": 10},
    {"label": "B", "value": 20},
    {"label": "C", "value": 30}
  ]
}
  1. Send Request:
  • Click the Send button to send the request

About

2024软工实践-时空数据管理系统

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 84.2%
  • Python 14.7%
  • Other 1.1%