Add API usage

This commit is contained in:
xfarrow 2024-10-30 15:36:50 +01:00
parent 0d1195f913
commit 7f45379ebc
3 changed files with 469 additions and 289 deletions

View File

@ -5,7 +5,7 @@
{ {
"type": "http", "type": "http",
"name": "ActivatePerson", "name": "ActivatePerson",
"seq": 22, "seq": 23,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me/activation?q=3ac9c204de1676b54163ed8015c7af00", "url": "http://localhost:3000/api/persons/me/activation?q=3ac9c204de1676b54163ed8015c7af00",
"method": "GET", "method": "GET",
@ -33,14 +33,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "none" "mode": "inherit"
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "AddOrganizationAdmin", "name": "AddOrganizationAdmin",
"seq": 10, "seq": 11,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1/admins", "url": "http://localhost:3000/api/organizations/1/admins",
"method": "POST", "method": "POST",
@ -68,10 +68,7 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTcyOTUxNjAzMCwiZXhwIjoxNzI5NTQ0ODMwfQ.jWVfSL_D4pabdihXDfoZ1dPLy4Nn6C3aePHIommiHqw"
}
} }
} }
}, },
@ -80,7 +77,7 @@
"name": "ChangeApplicationStatus", "name": "ChangeApplicationStatus",
"seq": 1, "seq": 1,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/applications/2", "url": "http://localhost:3000/api/organizations/joboffers/applications/5",
"method": "PATCH", "method": "PATCH",
"headers": [], "headers": [],
"params": [], "params": [],
@ -95,19 +92,16 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDEyNTUzNywiZXhwIjoxNzMwMTU0MzM3fQ.X216UkLuDL6-Qs6EUbIRL_YKQKKcxyzQFmAKzJNWEzI"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "CreateApplication", "name": "CreateApplication",
"seq": 4, "seq": 6,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/1", "url": "http://localhost:3000/api/organizations/joboffers/1/applications",
"method": "POST", "method": "POST",
"headers": [], "headers": [],
"params": [], "params": [],
@ -121,17 +115,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDEyNTUzNywiZXhwIjoxNzMwMTU0MzM3fQ.X216UkLuDL6-Qs6EUbIRL_YKQKKcxyzQFmAKzJNWEzI"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "CreateJobOffer", "name": "CreateJobOffer",
"seq": 8, "seq": 9,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1/joboffers", "url": "http://localhost:3000/api/organizations/1/joboffers",
"method": "POST", "method": "POST",
@ -159,17 +150,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTcyOTc3NDc4NywiZXhwIjoxNzI5ODAzNTg3fQ.Li0NeQH6e4ykQ8tpY3KYkS_bQhv7cIFmjz96U-E9S0c"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "CreateOrganization", "name": "CreateOrganization",
"seq": 15, "seq": 16,
"request": { "request": {
"url": "http://localhost:3000/api/organizations", "url": "http://localhost:3000/api/organizations",
"method": "POST", "method": "POST",
@ -197,10 +185,7 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTcyOTc3NDc4NywiZXhwIjoxNzI5ODAzNTg3fQ.Li0NeQH6e4ykQ8tpY3KYkS_bQhv7cIFmjz96U-E9S0c"
}
} }
} }
}, },
@ -209,7 +194,7 @@
"name": "DeleteApplication", "name": "DeleteApplication",
"seq": 2, "seq": 2,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/applications/2", "url": "http://localhost:3000/api/organizations/joboffers/applications/6",
"method": "DELETE", "method": "DELETE",
"headers": [], "headers": [],
"params": [], "params": [],
@ -224,17 +209,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDEyODc2NSwiZXhwIjoxNzMwMTU3NTY1fQ.puQ4gw9K_fL4FhXs7UlvyZwq98XZEIuXwnZ0JBIXzaw"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "DeleteJobOffer", "name": "DeleteJobOffer",
"seq": 6, "seq": 7,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/3", "url": "http://localhost:3000/api/organizations/joboffers/3",
"method": "DELETE", "method": "DELETE",
@ -256,17 +238,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTcyOTc2NDI0NiwiZXhwIjoxNzI5NzkzMDQ2fQ.TOZMas9WujFp_hP7bqFzbSqWighmT7NmfkohEmpWr5A"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "DeleteOrganization", "name": "DeleteOrganization",
"seq": 12, "seq": 13,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1", "url": "http://localhost:3000/api/organizations/1",
"method": "DELETE", "method": "DELETE",
@ -288,17 +267,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "DeletePerson", "name": "DeletePerson",
"seq": 18, "seq": 19,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me", "url": "http://localhost:3000/api/persons/me",
"method": "DELETE", "method": "DELETE",
@ -320,17 +296,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcxMTAzMjk1NCwiZXhwIjoxNzExMDYxNzU0fQ.5el1ymu9qZQpoJpWfM4ZPfNcs34GGFc6WVfCBitlyEk"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "FilterOrganizationByPrefix", "name": "FilterOrganizationByPrefix",
"seq": 11, "seq": 12,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/filter", "url": "http://localhost:3000/api/organizations/filter",
"method": "POST", "method": "POST",
@ -365,15 +338,15 @@
{ {
"type": "http", "type": "http",
"name": "GetApplicantsByOrganization", "name": "GetApplicantsByOrganization",
"seq": 3, "seq": 4,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1", "url": "http://localhost:3000/api/organizations/1/joboffers/applications",
"method": "GET", "method": "GET",
"headers": [], "headers": [],
"params": [], "params": [],
"body": { "body": {
"mode": "json", "mode": "json",
"json": "{\n \"organizationId\": 1\n}", "json": "",
"formUrlEncoded": [], "formUrlEncoded": [],
"multipartForm": [] "multipartForm": []
}, },
@ -382,17 +355,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDEyNTUzNywiZXhwIjoxNzMwMTU0MzM3fQ.X216UkLuDL6-Qs6EUbIRL_YKQKKcxyzQFmAKzJNWEzI"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "GetJobOffers", "name": "GetJobOffers",
"seq": 7, "seq": 8,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1/joboffers/", "url": "http://localhost:3000/api/organizations/1/joboffers/",
"method": "GET", "method": "GET",
@ -423,7 +393,7 @@
"name": "GetMyApplications", "name": "GetMyApplications",
"seq": 5, "seq": 5,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/applications/mine", "url": "http://localhost:3000/api/organizations/joboffers/applications/mine",
"method": "GET", "method": "GET",
"headers": [], "headers": [],
"params": [], "params": [],
@ -437,17 +407,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDEyNTUzNywiZXhwIjoxNzMwMTU0MzM3fQ.X216UkLuDL6-Qs6EUbIRL_YKQKKcxyzQFmAKzJNWEzI"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "GetMyself", "name": "GetMyself",
"seq": 20, "seq": 21,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me", "url": "http://localhost:3000/api/persons/me",
"method": "GET", "method": "GET",
@ -469,17 +436,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTcyOTUxNTY3NywiZXhwIjoxNzI5NTQ0NDc3fQ.OxlOKzzZpl2H8cxjPP_8vsD5LRBi-ZxDplvQf63jMkk"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "GetOrganization", "name": "GetOrganization",
"seq": 14, "seq": 15,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1", "url": "http://localhost:3000/api/organizations/1",
"method": "GET", "method": "GET",
@ -508,7 +472,7 @@
{ {
"type": "http", "type": "http",
"name": "GetPerson", "name": "GetPerson",
"seq": 21, "seq": 22,
"request": { "request": {
"url": "http://localhost:3000/api/persons/1/details", "url": "http://localhost:3000/api/persons/1/details",
"method": "GET", "method": "GET",
@ -537,7 +501,7 @@
{ {
"type": "http", "type": "http",
"name": "Login", "name": "Login",
"seq": 23, "seq": 24,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me/token", "url": "http://localhost:3000/api/persons/me/token",
"method": "POST", "method": "POST",
@ -565,52 +529,14 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "none" "mode": "inherit"
}
}
},
{
"type": "http",
"name": "RemoveOrganizationAdmin",
"seq": 9,
"request": {
"url": "http://localhost:3000/api/organizations/1/admins/me",
"method": "DELETE",
"headers": [
{
"name": "Content-Type",
"value": "application/json",
"enabled": true
},
{
"name": "User-Agent",
"value": "insomnia/2023.5.8",
"enabled": true
}
],
"params": [],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"auth": {
"mode": "bearer",
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjIsImlhdCI6MTcyOTUxNjM0NywiZXhwIjoxNzI5NTQ1MTQ3fQ.W09-xjGYSVI2EftoI9lSJAkzlo3V1NADcv4RbhE414I"
}
} }
} }
}, },
{ {
"type": "http", "type": "http",
"name": "Register", "name": "Register",
"seq": 24, "seq": 25,
"request": { "request": {
"url": "http://localhost:3000/api/persons", "url": "http://localhost:3000/api/persons",
"method": "POST", "method": "POST",
@ -638,17 +564,49 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "none"
"bearer": {
"token": ""
} }
} }
},
{
"type": "http",
"name": "RemoveOrganizationAdmin",
"seq": 10,
"request": {
"url": "http://localhost:3000/api/organizations/1/admins/me",
"method": "DELETE",
"headers": [
{
"name": "Content-Type",
"value": "application/json",
"enabled": true
},
{
"name": "User-Agent",
"value": "insomnia/2023.5.8",
"enabled": true
}
],
"params": [],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"auth": {
"mode": "inherit"
}
} }
}, },
{ {
"type": "http", "type": "http",
"name": "RequestNewPassword", "name": "RequestNewPassword",
"seq": 17, "seq": 18,
"request": { "request": {
"url": "http://localhost:3000/api/resetpassword/request", "url": "http://localhost:3000/api/resetpassword/request",
"method": "POST", "method": "POST",
@ -680,48 +638,10 @@
} }
} }
}, },
{
"type": "http",
"name": "UpdateOrganization",
"seq": 13,
"request": {
"url": "http://localhost:3000/api/organizations/1",
"method": "PATCH",
"headers": [
{
"name": "Content-Type",
"value": "application/json",
"enabled": true
},
{
"name": "User-Agent",
"value": "insomnia/2023.5.8",
"enabled": true
}
],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"Blink Inc.\",\n \"location\": \"Naples (Campania), Italy\",\n \"description\": \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world. Think of it as an open-source alternative to LinkedIn.\"\n}",
"formUrlEncoded": [],
"multipartForm": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"auth": {
"mode": "bearer",
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTcyOTUxNjAzMCwiZXhwIjoxNzI5NTQ0ODMwfQ.jWVfSL_D4pabdihXDfoZ1dPLy4Nn6C3aePHIommiHqw"
}
}
}
},
{ {
"type": "http", "type": "http",
"name": "ResetNewPassword", "name": "ResetNewPassword",
"seq": 16, "seq": 17,
"request": { "request": {
"url": "http://localhost:3000/api/resetpassword/reset", "url": "http://localhost:3000/api/resetpassword/reset",
"method": "POST", "method": "POST",
@ -753,10 +673,45 @@
} }
} }
}, },
{
"type": "http",
"name": "UpdateOrganization",
"seq": 14,
"request": {
"url": "http://localhost:3000/api/organizations/1",
"method": "PATCH",
"headers": [
{
"name": "Content-Type",
"value": "application/json",
"enabled": true
},
{
"name": "User-Agent",
"value": "insomnia/2023.5.8",
"enabled": true
}
],
"params": [],
"body": {
"mode": "json",
"json": "{\n \"name\": \"Blink Inc.\",\n \"location\": \"Naples (Campania), Italy\",\n \"description\": \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world. Think of it as an open-source alternative to LinkedIn.\"\n}",
"formUrlEncoded": [],
"multipartForm": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"auth": {
"mode": "inherit"
}
}
},
{ {
"type": "http", "type": "http",
"name": "UpdatePerson", "name": "UpdatePerson",
"seq": 19, "seq": 20,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me", "url": "http://localhost:3000/api/persons/me",
"method": "PATCH", "method": "PATCH",
@ -784,15 +739,46 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "bearer", "mode": "inherit"
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTcyOTUxNTY3NywiZXhwIjoxNzI5NTQ0NDc3fQ.OxlOKzzZpl2H8cxjPP_8vsD5LRBi-ZxDplvQf63jMkk"
} }
} }
},
{
"type": "http",
"name": "GetApplicantsByJobOffer",
"seq": 3,
"request": {
"url": "http://localhost:3000/api/organizations/joboffers/1/applications",
"method": "GET",
"headers": [],
"params": [],
"body": {
"mode": "json",
"json": "",
"formUrlEncoded": [],
"multipartForm": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"auth": {
"mode": "inherit"
}
} }
} }
], ],
"environments": [], "environments": [],
"root": {
"request": {
"auth": {
"mode": "bearer",
"bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDI5ODY0NywiZXhwIjoxNzMwMzI3NDQ3fQ.Quqwib7DasUSmWwLPpaCLQscBna_jNs-P0u2QW12lgA"
}
}
}
},
"brunoConfig": { "brunoConfig": {
"version": "1", "version": "1",
"name": "Blink", "name": "Blink",

View File

@ -24,13 +24,20 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/persons/me/activation?q=3ac9c204de1676b54163ed8015c7af00", "raw": "http://localhost:3000/api/persons/me/activation?q=3ac9c204de1676b54163ed8015c7af00",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"persons",
"me",
"activation"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -63,13 +70,20 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/1/admins", "raw": "http://localhost:3000/api/organizations/1/admins",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"1",
"admins"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -94,13 +108,21 @@
"request": { "request": {
"method": "PATCH", "method": "PATCH",
"header": [], "header": [],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/joboffers/applications/2", "raw": "http://localhost:3000/api/organizations/joboffers/applications/5",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"joboffers",
"applications",
"5"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -121,13 +143,21 @@
"request": { "request": {
"method": "POST", "method": "POST",
"header": [], "header": [],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/joboffers/1", "raw": "http://localhost:3000/api/organizations/joboffers/1/applications",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"joboffers",
"1",
"applications"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -152,13 +182,20 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/1/joboffers", "raw": "http://localhost:3000/api/organizations/1/joboffers",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"1",
"joboffers"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -192,13 +229,18 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations", "raw": "http://localhost:3000/api/organizations",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -219,13 +261,21 @@
"request": { "request": {
"method": "DELETE", "method": "DELETE",
"header": [], "header": [],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/joboffers/applications/2", "raw": "http://localhost:3000/api/organizations/joboffers/applications/6",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"joboffers",
"applications",
"6"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -253,13 +303,20 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/joboffers/3", "raw": "http://localhost:3000/api/organizations/joboffers/3",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"joboffers",
"3"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -278,13 +335,19 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/1", "raw": "http://localhost:3000/api/organizations/1",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"1"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -303,13 +366,19 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/persons/me", "raw": "http://localhost:3000/api/persons/me",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"persons",
"me"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -334,13 +403,19 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/filter", "raw": "http://localhost:3000/api/organizations/filter",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"filter"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -361,19 +436,26 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/1", "raw": "http://localhost:3000/api/organizations/1/joboffers/applications",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"1",
"joboffers",
"applications"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\n \"organizationId\": 1\n}",
"options": { "options": {
"raw": { "raw": {
"language": "json" "language": "json"
@ -395,13 +477,21 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/1/joboffers/", "raw": "http://localhost:3000/api/organizations/1/joboffers/",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"1",
"joboffers",
""
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -413,13 +503,21 @@
"request": { "request": {
"method": "GET", "method": "GET",
"header": [], "header": [],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/applications/mine", "raw": "http://localhost:3000/api/organizations/joboffers/applications/mine",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"joboffers",
"applications",
"mine"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -438,13 +536,19 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/persons/me", "raw": "http://localhost:3000/api/persons/me",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"persons",
"me"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -463,13 +567,19 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/1", "raw": "http://localhost:3000/api/organizations/1",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"organizations",
"1"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -488,13 +598,20 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/persons/1/details", "raw": "http://localhost:3000/api/persons/1/details",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"persons",
"1",
"details"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
} }
@ -519,13 +636,20 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/persons/me/token", "raw": "http://localhost:3000/api/persons/me/token",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"persons",
"me",
"token"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -540,45 +664,6 @@
} }
} }
}, },
{
"name": "RemoveOrganizationAdmin",
"event": [],
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"disabled": false,
"type": "default"
},
{
"key": "User-Agent",
"value": "insomnia/2023.5.8",
"disabled": false,
"type": "default"
}
],
"description": "",
"url": {
"raw": "http://localhost:3000/api/organizations/1/admins/me",
"host": [
"localhost"
],
"path": [],
"query": [],
"variable": []
},
"body": {
"mode": "raw",
"options": {
"raw": {
"language": "json"
}
}
}
}
},
{ {
"name": "Register", "name": "Register",
"event": [], "event": [],
@ -598,13 +683,18 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/persons", "raw": "http://localhost:3000/api/persons",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"persons"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -619,6 +709,53 @@
} }
} }
}, },
{
"name": "RemoveOrganizationAdmin",
"event": [],
"request": {
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"disabled": false,
"type": "default"
},
{
"key": "User-Agent",
"value": "insomnia/2023.5.8",
"disabled": false,
"type": "default"
}
],
"auth": null,
"description": "",
"url": {
"raw": "http://localhost:3000/api/organizations/1/admins/me",
"protocol": "http",
"host": [
"localhost:3000"
],
"path": [
"api",
"organizations",
"1",
"admins",
"me"
],
"query": [],
"variable": []
},
"body": {
"mode": "raw",
"options": {
"raw": {
"language": "json"
}
}
}
}
},
{ {
"name": "RequestNewPassword", "name": "RequestNewPassword",
"event": [], "event": [],
@ -638,59 +775,25 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/resetpassword/request", "raw": "http://localhost:3000/api/resetpassword/request",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"resetpassword",
"request"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
"body": { "body": {
"mode": "raw", "mode": "raw",
"raw": "{\n\t\"email\": \"john@mail.org\"\n}", "raw": "{\n \"email\": \"john@mail.org\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
}
},
{
"name": "UpdateOrganization",
"event": [],
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"disabled": false,
"type": "default"
},
{
"key": "User-Agent",
"value": "insomnia/2023.5.8",
"disabled": false,
"type": "default"
}
],
"description": "",
"url": {
"raw": "http://localhost:3000/api/organizations/1",
"host": [
"localhost"
],
"path": [],
"query": [],
"variable": []
},
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Blink Inc.\",\n \"location\": \"Naples (Campania), Italy\",\n \"description\": \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world. Think of it as an open-source alternative to LinkedIn.\"\n}",
"options": { "options": {
"raw": { "raw": {
"language": "json" "language": "json"
@ -718,13 +821,19 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/resetpassword/reset", "raw": "http://localhost:3000/api/resetpassword/reset",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"resetpassword",
"reset"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -739,6 +848,52 @@
} }
} }
}, },
{
"name": "UpdateOrganization",
"event": [],
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"disabled": false,
"type": "default"
},
{
"key": "User-Agent",
"value": "insomnia/2023.5.8",
"disabled": false,
"type": "default"
}
],
"auth": null,
"description": "",
"url": {
"raw": "http://localhost:3000/api/organizations/1",
"protocol": "http",
"host": [
"localhost:3000"
],
"path": [
"api",
"organizations",
"1"
],
"query": [],
"variable": []
},
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Blink Inc.\",\n \"location\": \"Naples (Campania), Italy\",\n \"description\": \"Blink is a privacy-respecting business-oriented social media platform focused on fostering connections between businesses and individuals, propelling careers and sparking innovation in the professional world. Think of it as an open-source alternative to LinkedIn.\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
}
},
{ {
"name": "UpdatePerson", "name": "UpdatePerson",
"event": [], "event": [],
@ -758,13 +913,19 @@
"type": "default" "type": "default"
} }
], ],
"auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/persons/me", "raw": "http://localhost:3000/api/persons/me",
"protocol": "http",
"host": [ "host": [
"localhost" "localhost:3000"
],
"path": [
"api",
"persons",
"me"
], ],
"path": [],
"query": [], "query": [],
"variable": [] "variable": []
}, },
@ -778,6 +939,40 @@
} }
} }
} }
},
{
"name": "GetApplicantsByJobOffer",
"event": [],
"request": {
"method": "GET",
"header": [],
"auth": null,
"description": "",
"url": {
"raw": "http://localhost:3000/api/organizations/joboffers/1/applications",
"protocol": "http",
"host": [
"localhost:3000"
],
"path": [
"api",
"organizations",
"joboffers",
"1",
"applications"
],
"query": [],
"variable": []
},
"body": {
"mode": "raw",
"options": {
"raw": {
"language": "json"
}
}
}
}
} }
], ],
"variable": [] "variable": []

View File

@ -1,4 +1,3 @@
// TODO: Create a validator
/* /*
This code is part of Blink This code is part of Blink
licensed under GPLv3 licensed under GPLv3