Skip to main content
GET
/
api
/
common
/
notification
Get notification by current user
curl --request GET \
  --url https://localhost:8080/api/common/notification
{
  "content": [
    {
      "id": 123,
      "recipient": {
        "id": 123,
        "password": "<string>",
        "email": "<string>",
        "fullName": "<string>",
        "phoneNumber": "<string>",
        "street": "<string>",
        "city": "<string>",
        "province": "<string>",
        "postalCode": "<string>",
        "expertise": "apprentice",
        "role": "farmer",
        "active": true
      },
      "order": {
        "id": 123,
        "farmer": {
          "id": 123,
          "email": "<string>",
          "fullName": "<string>",
          "phoneNumber": "<string>",
          "street": "<string>",
          "city": "<string>",
          "province": "<string>",
          "postalCode": "<string>",
          "expertise": "apprentice",
          "role": "farmer",
          "active": true
        },
        "receptionist": {
          "id": 123,
          "email": "<string>",
          "fullName": "<string>",
          "phoneNumber": "<string>",
          "street": "<string>",
          "city": "<string>",
          "province": "<string>",
          "postalCode": "<string>",
          "expertise": "apprentice",
          "role": "farmer",
          "active": true
        },
        "date": "2023-12-25",
        "session": {
          "id": 123,
          "startTime": {
            "hour": 123,
            "minute": 123,
            "second": 123,
            "nano": 123
          },
          "endTime": {
            "hour": 123,
            "minute": 123,
            "second": 123,
            "nano": 123
          }
        },
        "location": "<string>",
        "latitude": 123,
        "longitude": 123,
        "cropType": {
          "id": 123,
          "name": "<string>"
        },
        "area": 123,
        "cost": 123,
        "orderStatus": "pending",
        "paymentStatus": "pending",
        "paymentMethod": "cash",
        "completionDate": "2023-12-25",
        "confirmed": true,
        "creationDate": "2023-12-25"
      },
      "subject": "<string>",
      "text": "<string>",
      "timestamp": "2023-11-07T05:31:56Z"
    }
  ],
  "page": {
    "size": 123,
    "number": 123,
    "totalElements": 123,
    "totalPages": 123
  }
}

Query Parameters

pageable
object
required

Response

200 - */*

OK

content
object[]
page
object
I