update api

This commit is contained in:
xfarrow 2024-10-31 15:54:31 +01:00
parent 338e314613
commit 1c75874704
2 changed files with 267 additions and 124 deletions

View File

@ -5,7 +5,7 @@
{ {
"type": "http", "type": "http",
"name": "ActivatePerson", "name": "ActivatePerson",
"seq": 23, "seq": 26,
"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",
@ -40,7 +40,7 @@
{ {
"type": "http", "type": "http",
"name": "AddOrganizationAdmin", "name": "AddOrganizationAdmin",
"seq": 11, "seq": 14,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1/admins", "url": "http://localhost:3000/api/organizations/1/admins",
"method": "POST", "method": "POST",
@ -75,7 +75,7 @@
{ {
"type": "http", "type": "http",
"name": "ChangeApplicationStatus", "name": "ChangeApplicationStatus",
"seq": 1, "seq": 4,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/applications/5", "url": "http://localhost:3000/api/organizations/joboffers/applications/5",
"method": "PATCH", "method": "PATCH",
@ -99,7 +99,7 @@
{ {
"type": "http", "type": "http",
"name": "CreateApplication", "name": "CreateApplication",
"seq": 6, "seq": 9,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/1/applications", "url": "http://localhost:3000/api/organizations/joboffers/1/applications",
"method": "POST", "method": "POST",
@ -122,7 +122,7 @@
{ {
"type": "http", "type": "http",
"name": "CreateJobOffer", "name": "CreateJobOffer",
"seq": 9, "seq": 12,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1/joboffers", "url": "http://localhost:3000/api/organizations/1/joboffers",
"method": "POST", "method": "POST",
@ -157,7 +157,7 @@
{ {
"type": "http", "type": "http",
"name": "CreateOrganization", "name": "CreateOrganization",
"seq": 16, "seq": 19,
"request": { "request": {
"url": "http://localhost:3000/api/organizations", "url": "http://localhost:3000/api/organizations",
"method": "POST", "method": "POST",
@ -192,7 +192,7 @@
{ {
"type": "http", "type": "http",
"name": "DeleteApplication", "name": "DeleteApplication",
"seq": 2, "seq": 5,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/applications/6", "url": "http://localhost:3000/api/organizations/joboffers/applications/6",
"method": "DELETE", "method": "DELETE",
@ -216,7 +216,7 @@
{ {
"type": "http", "type": "http",
"name": "DeleteJobOffer", "name": "DeleteJobOffer",
"seq": 7, "seq": 10,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/3", "url": "http://localhost:3000/api/organizations/joboffers/3",
"method": "DELETE", "method": "DELETE",
@ -245,7 +245,7 @@
{ {
"type": "http", "type": "http",
"name": "DeleteOrganization", "name": "DeleteOrganization",
"seq": 13, "seq": 16,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1", "url": "http://localhost:3000/api/organizations/1",
"method": "DELETE", "method": "DELETE",
@ -274,7 +274,7 @@
{ {
"type": "http", "type": "http",
"name": "DeletePerson", "name": "DeletePerson",
"seq": 19, "seq": 22,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me", "url": "http://localhost:3000/api/persons/me",
"method": "DELETE", "method": "DELETE",
@ -303,7 +303,7 @@
{ {
"type": "http", "type": "http",
"name": "FilterOrganizationByPrefix", "name": "FilterOrganizationByPrefix",
"seq": 12, "seq": 15,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/filter", "url": "http://localhost:3000/api/organizations/filter",
"method": "POST", "method": "POST",
@ -335,10 +335,34 @@
} }
} }
}, },
{
"type": "http",
"name": "GetApplicantsByJobOffer",
"seq": 6,
"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"
}
}
},
{ {
"type": "http", "type": "http",
"name": "GetApplicantsByOrganization", "name": "GetApplicantsByOrganization",
"seq": 4, "seq": 7,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1/joboffers/applications", "url": "http://localhost:3000/api/organizations/1/joboffers/applications",
"method": "GET", "method": "GET",
@ -362,7 +386,7 @@
{ {
"type": "http", "type": "http",
"name": "GetJobOffers", "name": "GetJobOffers",
"seq": 8, "seq": 11,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1/joboffers/", "url": "http://localhost:3000/api/organizations/1/joboffers/",
"method": "GET", "method": "GET",
@ -391,7 +415,7 @@
{ {
"type": "http", "type": "http",
"name": "GetMyApplications", "name": "GetMyApplications",
"seq": 5, "seq": 8,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/applications/mine", "url": "http://localhost:3000/api/organizations/joboffers/applications/mine",
"method": "GET", "method": "GET",
@ -414,7 +438,7 @@
{ {
"type": "http", "type": "http",
"name": "GetMyself", "name": "GetMyself",
"seq": 21, "seq": 24,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me", "url": "http://localhost:3000/api/persons/me",
"method": "GET", "method": "GET",
@ -443,7 +467,7 @@
{ {
"type": "http", "type": "http",
"name": "GetOrganization", "name": "GetOrganization",
"seq": 15, "seq": 18,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1", "url": "http://localhost:3000/api/organizations/1",
"method": "GET", "method": "GET",
@ -472,7 +496,7 @@
{ {
"type": "http", "type": "http",
"name": "GetPerson", "name": "GetPerson",
"seq": 22, "seq": 25,
"request": { "request": {
"url": "http://localhost:3000/api/persons/1/details", "url": "http://localhost:3000/api/persons/1/details",
"method": "GET", "method": "GET",
@ -498,10 +522,33 @@
} }
} }
}, },
{
"type": "http",
"name": "InsertContactInfo",
"seq": 3,
"request": {
"url": "http://localhost:3000/persons/myself/contactinfos",
"method": "POST",
"headers": [],
"params": [],
"body": {
"mode": "none",
"formUrlEncoded": [],
"multipartForm": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"auth": {
"mode": "inherit"
}
}
},
{ {
"type": "http", "type": "http",
"name": "Login", "name": "Login",
"seq": 24, "seq": 27,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me/token", "url": "http://localhost:3000/api/persons/me/token",
"method": "POST", "method": "POST",
@ -536,7 +583,7 @@
{ {
"type": "http", "type": "http",
"name": "Register", "name": "Register",
"seq": 25, "seq": 28,
"request": { "request": {
"url": "http://localhost:3000/api/persons", "url": "http://localhost:3000/api/persons",
"method": "POST", "method": "POST",
@ -568,45 +615,10 @@
} }
} }
}, },
{
"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": 18, "seq": 21,
"request": { "request": {
"url": "http://localhost:3000/api/resetpassword/request", "url": "http://localhost:3000/api/resetpassword/request",
"method": "POST", "method": "POST",
@ -638,10 +650,45 @@
} }
} }
}, },
{
"type": "http",
"name": "RemoveOrganizationAdmin",
"seq": 13,
"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": "ResetNewPassword", "name": "ResetNewPassword",
"seq": 17, "seq": 20,
"request": { "request": {
"url": "http://localhost:3000/api/resetpassword/reset", "url": "http://localhost:3000/api/resetpassword/reset",
"method": "POST", "method": "POST",
@ -676,7 +723,7 @@
{ {
"type": "http", "type": "http",
"name": "UpdateOrganization", "name": "UpdateOrganization",
"seq": 14, "seq": 17,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/1", "url": "http://localhost:3000/api/organizations/1",
"method": "PATCH", "method": "PATCH",
@ -711,7 +758,7 @@
{ {
"type": "http", "type": "http",
"name": "UpdatePerson", "name": "UpdatePerson",
"seq": 20, "seq": 23,
"request": { "request": {
"url": "http://localhost:3000/api/persons/me", "url": "http://localhost:3000/api/persons/me",
"method": "PATCH", "method": "PATCH",
@ -745,16 +792,15 @@
}, },
{ {
"type": "http", "type": "http",
"name": "GetApplicantsByJobOffer", "name": "GetContactInfosByPerson",
"seq": 3, "seq": 2,
"request": { "request": {
"url": "http://localhost:3000/api/organizations/joboffers/1/applications", "url": "http://localhost:3000/api/persons/1/contactinfos",
"method": "GET", "method": "GET",
"headers": [], "headers": [],
"params": [], "params": [],
"body": { "body": {
"mode": "json", "mode": "none",
"json": "",
"formUrlEncoded": [], "formUrlEncoded": [],
"multipartForm": [] "multipartForm": []
}, },
@ -763,7 +809,30 @@
"assertions": [], "assertions": [],
"tests": "", "tests": "",
"auth": { "auth": {
"mode": "inherit" "mode": "none"
}
}
},
{
"type": "http",
"name": "DeleteContactInfo",
"seq": 1,
"request": {
"url": "http://localhost:3000/api/persons/contactinfos/2",
"method": "DELETE",
"headers": [],
"params": [],
"body": {
"mode": "none",
"formUrlEncoded": [],
"multipartForm": []
},
"script": {},
"vars": {},
"assertions": [],
"tests": "",
"auth": {
"mode": "none"
} }
} }
} }
@ -774,7 +843,7 @@
"auth": { "auth": {
"mode": "bearer", "mode": "bearer",
"bearer": { "bearer": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDI5ODY0NywiZXhwIjoxNzMwMzI3NDQ3fQ.Quqwib7DasUSmWwLPpaCLQscBna_jNs-P0u2QW12lgA" "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25faWQiOjEsImlhdCI6MTczMDM4MzIzMiwiZXhwIjoxNzMwNDEyMDMyfQ.sAW5wdB_dmjBxEyWI8dty8en9Fhtwyxbb45YV8q6u90"
} }
} }
} }

View File

@ -430,6 +430,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"
}
}
}
}
},
{ {
"name": "GetApplicantsByOrganization", "name": "GetApplicantsByOrganization",
"event": [], "event": [],
@ -617,6 +651,30 @@
} }
} }
}, },
{
"name": "InsertContactInfo",
"event": [],
"request": {
"method": "POST",
"header": [],
"auth": null,
"description": "",
"url": {
"raw": "http://localhost:3000/persons/myself/contactinfos",
"protocol": "http",
"host": [
"localhost:3000"
],
"path": [
"persons",
"myself",
"contactinfos"
],
"query": [],
"variable": []
}
}
},
{ {
"name": "Login", "name": "Login",
"event": [], "event": [],
@ -709,6 +767,52 @@
} }
} }
}, },
{
"name": "RequestNewPassword",
"event": [],
"request": {
"method": "POST",
"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/resetpassword/request",
"protocol": "http",
"host": [
"localhost:3000"
],
"path": [
"api",
"resetpassword",
"request"
],
"query": [],
"variable": []
},
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"john@mail.org\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
}
},
{ {
"name": "RemoveOrganizationAdmin", "name": "RemoveOrganizationAdmin",
"event": [], "event": [],
@ -756,52 +860,6 @@
} }
} }
}, },
{
"name": "RequestNewPassword",
"event": [],
"request": {
"method": "POST",
"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/resetpassword/request",
"protocol": "http",
"host": [
"localhost:3000"
],
"path": [
"api",
"resetpassword",
"request"
],
"query": [],
"variable": []
},
"body": {
"mode": "raw",
"raw": "{\n \"email\": \"john@mail.org\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
}
},
{ {
"name": "ResetNewPassword", "name": "ResetNewPassword",
"event": [], "event": [],
@ -941,7 +999,7 @@
} }
}, },
{ {
"name": "GetApplicantsByJobOffer", "name": "GetContactInfosByPerson",
"event": [], "event": [],
"request": { "request": {
"method": "GET", "method": "GET",
@ -949,28 +1007,44 @@
"auth": null, "auth": null,
"description": "", "description": "",
"url": { "url": {
"raw": "http://localhost:3000/api/organizations/joboffers/1/applications", "raw": "http://localhost:3000/api/persons/1/contactinfos",
"protocol": "http", "protocol": "http",
"host": [ "host": [
"localhost:3000" "localhost:3000"
], ],
"path": [ "path": [
"api", "api",
"organizations", "persons",
"joboffers",
"1", "1",
"applications" "contactinfos"
],
"query": [],
"variable": []
}
}
},
{
"name": "DeleteContactInfo",
"event": [],
"request": {
"method": "DELETE",
"header": [],
"auth": null,
"description": "",
"url": {
"raw": "http://localhost:3000/api/persons/contactinfos/2",
"protocol": "http",
"host": [
"localhost:3000"
],
"path": [
"api",
"persons",
"contactinfos",
"2"
], ],
"query": [], "query": [],
"variable": [] "variable": []
},
"body": {
"mode": "raw",
"options": {
"raw": {
"language": "json"
}
}
} }
} }
} }