{
  "name": "AppointmentFeedbackService",
  "connector": "rest",
  "baseURL": "",
  "crud": true,
  "options": {
    "baseUrl": "PATIENT_SERVICE_URL",
    "headers": {
      "accept": "application/json",
      "content-type": "application/json"
    }
  },
  "operations": [
    {
      "template": {
        "method": "POST",
        "url": "/appointments/{id}/health",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{appointmentHealth}"
      },
      "functions": {
        "create": [
          "id",
          "appointmentHealth",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PATCH",
        "url": "/appointments/{id}/health",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{appointmentHealth}"
      },
      "functions": {
        "updateAll": [
          "appointmentHealth",
          "id",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "GET",
        "url": "/appointments/{id}/health",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        }
      },
      "functions": {
        "find": [
          "id",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PATCH",
        "url": "/appointments/{id}/health",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{patientCarePlanDetails}"
      },
      "functions": {
        "updateById": [
          "id",
          "patientCarePlanDetails",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PATCH",
        "url": "/appointments/{id}/status",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{status}"
      },
      "functions": {
        "updateAppoinmentStatus": [
          "id",
          "status",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "DELETE",
        "url": "/appointments/{id}/health",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        }
      },
      "functions": {
        "deleteById": [
          "id",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PATCH",
        "url": "/appointments/{id}",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        },
        "body": "{appointment}"
      },
      "functions": {
        "updateAppoinement": [
          "id",
          "appointment",
          "token"
        ]
      }
    },
    {
      "template": {
        "method": "PATCH",
        "url": "/patients/{patientId}/prescription-status",
        "headers": {
          "content-type": "application/json",
          "Authorization": "{token}"
        }
      },
      "functions": {
        "updatePrescriptionStatus": [
          "patientId",
          "token"
        ]
      }
    }
  ]
}