Support Request

Create support request

POST https://api.podkrepi.localhost/api/v1/support-request

Request Body

NameTypeDescription

person

object

support_data

object

{
  "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
}

Fetch support requests

GET https://api.podkrepi.localhost/api/v1/support-request

This endpoint allows you to get free cakes.

Headers

NameTypeDescription

Authentication

string

Authentication token to track down who is emptying our stocks.

[
  {
    "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
  }
]

Fetch specific support request

GET https://api.podkrepi.localhost/api/v1/support-request/:id

Path Parameters

NameTypeDescription

ID

string

Headers

NameTypeDescription

Authentication

string

{
  "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
}

Delete support request

DELETE https://api.podkrepi.localhost/api/v1/support-request/:id

Path Parameters

NameTypeDescription

id

string

Headers

NameTypeDescription

Authentication

string

{
  "status": 200
}

Last updated