加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
乐享IT.postman_collection.json 10.73 KB
一键复制 编辑 原始数据 按行查看 历史
谢金金 提交于 2023-07-07 17:33 . 修复若干bug
{
"info": {
"_postman_id": "abe84fd1-7c32-4cc6-b2a1-c9c10081d550",
"name": "乐享IT",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "教室",
"item": [
{
"name": "获取所有教室",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2ZTgwNGU3Zi0xYjFhLTRjZmEtYTRkNC0zMDY2YWY1YWRjY2IiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiY3MiLCJVc2VySWQiOiI2ZTgwNGU3Zi0xYjFhLTRjZmEtYTRkNC0zMDY2YWY1YWRjY2IiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJTVFVERU5UIiwibmJmIjoxNjg4NzE1NjQxLCJleHAiOjE2ODg4MDIwNDEsImlzcyI6Ik1hZ2ljR3JvdXAiLCJhdWQiOiJNYWdpY1Byb2plY3QifQ.pzOpkkarP0a4iRAPjLO7FRGVZ3CxUiUhhJuKq592OSc",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:5226/api/ClassRooms",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"ClassRooms"
]
}
},
"response": []
},
{
"name": "添加教室",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJVc2VySWQiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBRE1JTiIsIm5iZiI6MTY4ODcyMTUyNywiZXhwIjoxNjg4ODA3OTI3LCJpc3MiOiJNYWdpY0dyb3VwIiwiYXVkIjoiTWFnaWNQcm9qZWN0In0.voRXsFhjQkuCG7zrCKSgyQP6OL0fXnlIagedGbt_lE0",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"3班\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5226/api/ClassRooms",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"ClassRooms"
]
}
},
"response": []
},
{
"name": "修改教室",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"08db7ecb-6ac9-453f-8af6-3961c885bd31\",\r\n \"name\": \"1班\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5226/api/ClassRooms",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"ClassRooms"
]
}
},
"response": []
},
{
"name": "删除班级",
"request": {
"method": "GET",
"header": []
},
"response": []
}
]
},
{
"name": "用户",
"item": [
{
"name": "学生注册",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"userName\": \"css\",\r\n \"password\": \"!QAZ2wsx\",\r\n \"phoneNumber\": \"string\",\r\n \"avatar\": \"string\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5226/api/Auths/register",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Auths",
"register"
]
}
},
"response": []
},
{
"name": "用户登录",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJVc2VySWQiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBRE1JTiIsIm5iZiI6MTY4ODcxNzUzNSwiZXhwIjoxNjg4ODAzOTM1LCJpc3MiOiJNYWdpY0dyb3VwIiwiYXVkIjoiTWFnaWNQcm9qZWN0In0.9LeRZsxFciZGwWboxjC-9-z25BiVdWY-dsBkdgL8Z_k",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"userName\": \"xxx\",\r\n \"password\": \"!QAZ2wsx\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5226/api/Auths/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Auths",
"login"
]
}
},
"response": []
},
{
"name": "添加老师",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJVc2VySWQiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBRE1JTiIsIm5iZiI6MTY4ODcxNzUzNSwiZXhwIjoxNjg4ODAzOTM1LCJpc3MiOiJNYWdpY0dyb3VwIiwiYXVkIjoiTWFnaWNQcm9qZWN0In0.9LeRZsxFciZGwWboxjC-9-z25BiVdWY-dsBkdgL8Z_k",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"userName\": \"xx\",\r\n \"password\": \"!QAZ2wsx\",\r\n \"phoneNumber\": \"string\",\r\n \"avatar\": \"string\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5226/api/Auths/register/teacher",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Auths",
"register",
"teacher"
]
}
},
"response": []
},
{
"name": "删除用户",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJVc2VySWQiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBRE1JTiIsIm5iZiI6MTY4ODcxNzUzNSwiZXhwIjoxNjg4ODAzOTM1LCJpc3MiOiJNYWdpY0dyb3VwIiwiYXVkIjoiTWFnaWNQcm9qZWN0In0.9LeRZsxFciZGwWboxjC-9-z25BiVdWY-dsBkdgL8Z_k",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:5226/api/Auths/WriteOff/xxx",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Auths",
"WriteOff",
"xxx"
]
}
},
"response": []
}
]
},
{
"name": "班级",
"item": [
{
"name": "查询所有班级",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiQWRtaW4iLCJVc2VySWQiOiIwMzdjNTY0NS1iOGU4LTRjYjgtYWEzNC03NmFjNmI2M2E4Y2EiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJBRE1JTiIsIm5iZiI6MTY4ODcxNzUzNSwiZXhwIjoxNjg4ODAzOTM1LCJpc3MiOiJNYWdpY0dyb3VwIiwiYXVkIjoiTWFnaWNQcm9qZWN0In0.9LeRZsxFciZGwWboxjC-9-z25BiVdWY-dsBkdgL8Z_k",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:5226/api/Classes",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Classes"
]
}
},
"response": []
},
{
"name": "添加班级",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIzMzFhNDZmNy0wOTJjLTQ3NGYtYTcyZi1mMGJiMWQ4MDU2MGMiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoieHgiLCJVc2VySWQiOiIzMzFhNDZmNy0wOTJjLTQ3NGYtYTcyZi1mMGJiMWQ4MDU2MGMiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJURUFDSEVSIiwibmJmIjoxNjg4NzE4MjUxLCJleHAiOjE2ODg4MDQ2NTEsImlzcyI6Ik1hZ2ljR3JvdXAiLCJhdWQiOiJNYWdpY1Byb2plY3QifQ.LnrW7JIOv-mPT-Kd_ZrpjLtvqjvEBKdZwYM1-ttARqc",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"666班\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5226/api/Classes",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Classes"
]
}
},
"response": []
},
{
"name": "修改班级",
"request": {
"auth": {
"type": "noauth"
},
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": \"9e12d3be-a37b-4970-83f5-f7da4fb5da07\",\r\n \"name\": \"777班\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:5226/api/Classes",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Classes"
]
}
},
"response": []
},
{
"name": "删除班级",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:5226/api/Classes/9e12d3be-a37b-4970-83f5-f7da4fb5da07",
"protocol": "http",
"host": [
"localhost"
],
"port": "5226",
"path": [
"api",
"Classes",
"9e12d3be-a37b-4970-83f5-f7da4fb5da07"
]
}
},
"response": []
}
]
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化