Support Request Create support request
POST
https://api.podkrepi.localhost/api/v1/support-request
Request Body
200
Copy {
"id" : "d1451c92-0e86-463a-bf1c-2e4554a77f30" ,
"person" : {
"email" : "test@example.com" ,
"name" : "John Doe" ,
"phone" : "+3598777777777" ,
"address" : "6 John Doe Str" ,
"terms" : true ,
"newsletter" : true
} ,
"support_data" : {
"roles" : {
"benefactor" : true ,
"partner" : true ,
"associationMember" : false ,
"promoter" : false ,
"volunteer" : true
} ,
"benefactor" : {
"campaignBenefactor" : true ,
"platformBenefactor" : false
} ,
"partner" : {
"npo" : false ,
"bussiness" : true ,
"other" : false ,
"otherText" : "aaaaa"
} ,
"volunteer" : {
"backend" : false ,
"frontend" : true ,
"marketing" : false ,
"designer" : true ,
"projectManager" : false ,
"devOps" : true ,
"financesAndAccounts" : true ,
"lawyer" : false ,
"qa" : false
} ,
"associationMember" : {
"isMember" : true
} ,
"promoter" : {
"mediaPartner" : false ,
"ambassador" : false ,
"other" : true ,
"otherText" : "bbbbb"
}
} ,
"createdAt" : "2021-04-07T12:57:09.42898025Z" ,
"updatedAt" : "2021-04-07T12:57:09.42898025Z" ,
"deletedAt" : null
}
400
Copy {
"statusCode" : 400 ,
"error": "Person.email: non zero value required;Person.name: non zero value required;Person.phone: non zero value required",
"validation" : [
{
"field" : "Person.email" ,
"message" : "Person.email: non zero value required" ,
"validator" : "required" ,
"customMessage" : false
} ,
{
"field" : "Person.name" ,
"message" : "Person.name: non zero value required" ,
"validator" : "required" ,
"customMessage" : false
} ,
{
"field" : "Person.phone" ,
"message" : "Person.phone: non zero value required" ,
"validator" : "required" ,
"customMessage" : false
}
]
}
Fetch support requests
GET
https://api.podkrepi.localhost/api/v1/support-request
This endpoint allows you to get free cakes.
200 List of contact requests successfully retrieved.
Fetch specific support request
GET
https://api.podkrepi.localhost/api/v1/support-request/:id
Path Parameters
200
Copy {
"id" : "17222da9-b550-4e82-a6c6-88100bf54675" ,
"person" : {
"email" : "" ,
"name" : "" ,
"phone" : "" ,
"address" : "" ,
"terms" : false ,
"newsletter" : false
} ,
"support_data" : {
"roles" : {
"benefactor" : false ,
"partner" : false ,
"associationMember" : false ,
"promoter" : false ,
"volunteer" : false
} ,
"benefactor" : {
"campaignBenefactor" : false ,
"platformBenefactor" : false
} ,
"partner" : {
"npo" : false ,
"bussiness" : false ,
"other" : false ,
"otherText" : ""
} ,
"volunteer" : {
"backend" : false ,
"frontend" : false ,
"marketing" : false ,
"designer" : false ,
"projectManager" : false ,
"devOps" : false ,
"financesAndAccounts" : false ,
"lawyer" : false ,
"qa" : false
} ,
"associationMember" : {
"isMember" : false
} ,
"promoter" : {
"mediaPartner" : false ,
"ambassador" : false ,
"other" : false ,
"otherText" : ""
}
} ,
"createdAt" : "2021-04-07T09:16:28.026936Z" ,
"updatedAt" : "2021-04-07T09:16:28.026936Z" ,
"deletedAt" : null
}
404
Copy {
"error" : "No support request found" ,
"status" : 404
}
Delete support request
DELETE
https://api.podkrepi.localhost/api/v1/support-request/:id
Path Parameters