Contact Request

Create contact request

POST https://api.podkrepi.localhost/api/v1/contact

Request Body

Name
Type
Description

email

string

phone

string

company

string

message

string

firstName

string

lastName

string

{
  "id": "112cb853-b0b9-482e-a944-cf4fca5566b7",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "company": "Camplight",
  "phone": "+359888888888",
  "message": "I wanna help",
  "createdAt": "2021-03-19T00:36:50.076597738Z",
  "updatedAt": "2021-03-19T00:36:50.076597738Z",
  "deletedAt": null
}

Fetch contact requests

GET https://api.podkrepi.localhost/api/v1/contact

This endpoint allows you to get free cakes.

Headers

Name
Type
Description

Authentication

string

Authentication token to track down who is emptying our stocks.

[
  {
    "id": "0d6ff16e-ae4c-48e4-868c-05095d923053",
    "firstName": "John",
    "lastName": "Doe",
    "email": "john.doe@example.com",
    "company": "Camplight",
    "phone": "",
    "message": "I wanna help",
    "createdAt": "2021-03-19T00:11:21.031966Z",
    "updatedAt": "2021-03-19T00:11:21.031966Z",
    "deletedAt": null
  },
  {
    "id": "76e6e2f7-b3f2-4df4-9185-cc44185e7c86",
    "firstName": "John",
    "lastName": "Doe",
    "email": "john.doe@example.com",
    "company": "ACME",
    "phone": "+359888888888",
    "message": "I wanna help",
    "createdAt": "2021-03-19T00:20:31.355736Z",
    "updatedAt": "2021-03-19T00:20:31.355736Z",
    "deletedAt": null
  }
]

Fetch specific contact request

GET https://api.podkrepi.localhost/api/v1/contact/:id

Path Parameters

Name
Type
Description

ID

string

Headers

Name
Type
Description

Authentication

string

{
  "id": "112cb853-b0b9-482e-a944-cf4fca5566b7",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "company": "Camplight",
  "phone": "+359888888888",
  "message": "I wanna help",
  "createdAt": "2021-03-19T00:36:50.076597738Z",
  "updatedAt": "2021-03-19T00:36:50.076597738Z",
  "deletedAt": null
}

Delete contact request

DELETE https://api.podkrepi.localhost/api/v1/contact/:id

Path Parameters

Name
Type
Description

id

string

Headers

Name
Type
Description

Authentication

string

{
  "status": 200
}

Last updated