Afya-Health
  1. Appointment
Afya-Health
  • Auth
    • Login
      POST
    • Signup
      POST
  • ForgotPassword
    • Verify OTP
      POST
    • ForgotPassword
      POST
    • ResetPassword
      POST
  • Profile
    • Get User Profile
      GET
    • Update user profile
      POST
  • Family Members
    • Add Family Member
      POST
    • Update Family Members
      PUT
    • Delete Family Member
      DELETE
  • Address
    • Get User address
      GET
    • Add Address
      POST
    • Update address
      PUT
    • Delete Address
      DELETE
  • Languages
    • List AppLabels
      GET
    • Add/Update Label
      POST
    • List Languages
      GET
  • Products
    • Get Products
    • Create Product
    • Update Product
    • Delete Product
    • Update product items
  • Permissions
    • Get Permissions
  • Config
    • List Practice Config
    • Add Update Config
    • List Master Config
    • Add Update Master Config
  • Appointment Schedule
    • Create Schedule
    • Update Schedule
    • Delete Schedule
    • Get Schedule by ID
    • Get Schedule list
  • Test Tags
    • Get Test Tags
    • Create Test Tag
    • Update Test Tag
    • Delete Test Tag
  • Test Parameters
    • Get Test Parameters
    • Create Test Parameters
    • Update Test Parameters
    • Delete Test Parameters
  • Category
    • Get Category
    • Create Category
    • Update Category
    • Delete Category
  • Device
    • Register Device
  • File
    • Upload File
  • Appointment
    • Create Appointment Order
      POST
    • Get Appointments List
      GET
    • Update Appointment Status
      POST
    • Get Appointment by ID
      GET
    • Get Appointment Slots
      POST
    • GetStartJourneyDirection
      POST
  • Reports
    • Upload Report
    • List All Reports
    • List Reports By Appointment
    • Delete Report
    • Update Report File
  • Staff
    • Add Staff Member
    • List Staff Member
    • Update Staff Member
    • Delete Staff Member
    • Get Staff member by ID
  • Patient
    • List Patients
    • Add Patient
    • Update Patient
    • Delete Patient
    • Get patient by ID
  • Notifications
    • List User Notifications
    • Update Notification read status
  1. Appointment

GetStartJourneyDirection

Developing
POST
/api/service/v1/appointment/{appointmentId}/directions

Request

Path Params
appointmentId
string 
required
Example:
12
Header Params
practice-code
string 
optional
Example:
DEFAULT
Body Params application/json
origin
string 
required
destination
string 
required
Example
{
    "origin":"22.99938892716462,72.50895456814037",
    "destination":"23.011798107081482,72.50295365094784"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://afyahealth.doctodoor.com:5600/api/service/v1/appointment/12/directions' \
--header 'practice-code: DEFAULT' \
--header 'Content-Type: application/json' \
--data-raw '{
    "origin":"22.99938892716462,72.50895456814037",
    "destination":"23.011798107081482,72.50295365094784"
}'

Responses

🟢200OK
application/json
Body
object {0}
Example
{}
Previous
Get Appointment Slots
Next
Upload Report
Built with