262 lines
6.6 KiB
Plaintext
262 lines
6.6 KiB
Plaintext
{
|
|
"info": {
|
|
"_postman_id": "9db1634f-9b98-4bb9-ba81-04dae697cfbc",
|
|
"name": "Bright Glimmer",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Student",
|
|
"item": [
|
|
{
|
|
"name": "Get",
|
|
"request": {
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJHaW92YW5pIiwibmJmIjoxNTU3MTA1NTYwLCJleHAiOjE1NTczNjQ3NjAsImlhdCI6MTU1NzEwNTU2MH0.rBc6WoIrxdRwzGSTFgTUq9nzEsTLRGfgIw23gA6FbmM",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "https://localhost:44335/api/student/fef03478-3914-41b3-b818-2dfb804fa05c",
|
|
"protocol": "https",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "44335",
|
|
"path": [
|
|
"api",
|
|
"student",
|
|
"fef03478-3914-41b3-b818-2dfb804fa05c"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "GetAll",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "https://localhost:44335/api/student",
|
|
"protocol": "https",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "44335",
|
|
"path": [
|
|
"api",
|
|
"student"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"name": "Content-Type",
|
|
"value": "application/json",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\t\"FirstName\": \"Giovani\",\n\t\"MiddleName\": \"Luis\",\n\t\"LastName\": \"Rodriguez\",\n\t\"Email\": \"grodriguez@test.com\",\n\t\"Phones\": \n\t[\n\t\t{\n\t\t\t\"Type\": \"HOMEPHONE\",\n\t\t\t\"AreaCode\": \"888\",\n\t\t\t\"Number\": \"8888888\"\n\t\t}\n\t],\n\t\"Address\":\n\t{\n\t\t\"StreetAddress1\":\"1234 Johnson St\",\n\t\t\"StreetAddress2\":\"APT 1301\",\n\t\t\"City\":\"Japan City\",\n\t\t\"StateCode\":\"JP\",\n\t\t\"County\":\"Japan County\",\n\t\t\"ZipCode\":\"99999\"\n\t}\n}"
|
|
},
|
|
"url": {
|
|
"raw": "https://localhost:44335/api/student",
|
|
"protocol": "https",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "44335",
|
|
"path": [
|
|
"api",
|
|
"student"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"name": "Content-Type",
|
|
"value": "application/json",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"firstName\": \"Giovani lololol\",\n \"middleName\": \"Luis\",\n \"lastName\": \"Rodriguez\",\n \"email\": \"groez@test.com\",\n \"address\": {\n \"streetAddress1\": \"1234 Johnson St 1111\",\n \"streetAddress2\": \"APT 1301 lolololol\",\n \"city\": \"Japan lolololol City\",\n \"stateCode\": \"JP loolol\",\n \"county\": \"Japan lololol County\",\n \"zipCode\": 33333,\n \"id\": \"277a7492-2b10-420c-8d81-1a837bedd826\"\n },\n \"profilePictureUrl\": null,\n \"phones\": [\n {\n \"type\": 1,\n \"areaCode\": 999,\n \"number\": 8888888,\n \"id\": \"8d2a37e0-9d67-4b67-9ade-90587ef3545b\"\n }\n ],\n \"assignedCourses\": [],\n \"id\": \"161e586f-9e7c-45dc-9fed-8cae0fc67d2d\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "https://localhost:44335/api/student",
|
|
"protocol": "https",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "44335",
|
|
"path": [
|
|
"api",
|
|
"student"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "https://localhost:44335/api/student/161e586f-9e7c-45dc-9fed-8cae0fc67d2d",
|
|
"protocol": "https",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "44335",
|
|
"path": [
|
|
"api",
|
|
"student",
|
|
"161e586f-9e7c-45dc-9fed-8cae0fc67d2d"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
],
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJnaW8xMDEwNDYiLCJlbWFpbCI6Imdpb3ZhbmlsdWlzcm9kcmlndWV6QGdtYWlsLmNvbSIsIm5iZiI6MTU1NzI0OTMzMSwiZXhwIjoxNTU4NDU4OTMxLCJpYXQiOjE1NTcyNDkzMzF9.MTplFJQEcJSml-_aZLcPG5t5l6NLmoov1V4FEDHoLvU",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"event": [
|
|
{
|
|
"listen": "prerequest",
|
|
"script": {
|
|
"id": "49381306-54ea-4914-a056-933a1b8c07c0",
|
|
"type": "text/javascript",
|
|
"exec": [
|
|
""
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"listen": "test",
|
|
"script": {
|
|
"id": "9807c449-686e-4696-8e1a-05bc3f2a43b1",
|
|
"type": "text/javascript",
|
|
"exec": [
|
|
""
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Auth",
|
|
"item": [
|
|
{
|
|
"name": "Login",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": ""
|
|
},
|
|
"url": {
|
|
"raw": "https://localhost:44369/api/user?username=gio101046&password=admin1234",
|
|
"protocol": "https",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "44369",
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "username",
|
|
"value": "gio101046"
|
|
},
|
|
{
|
|
"key": "password",
|
|
"value": "admin1234"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Register",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"name": "Content-Type",
|
|
"value": "application/json",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n\t\"user\": {\n\t\t\"username\": \"gio101046\",\n\t\t\"email\": \"giovaniluisrodriguez@gmail.com\",\n\t\t\"firstname\": \"Giovani\",\n\t\t\"lastname\": \"Rodriguez\"\n\t},\n\t\"password\": \"admin1234\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "https://localhost:44369/api/user",
|
|
"protocol": "https",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "44369",
|
|
"path": [
|
|
"api",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |