Get all appointmet slots
POST
http://localhost:3000/graphqlQuery
query GetAvaliableSlotsForAppointmentsWithADoctor($doctorId: Float!, $date: String!) {
getAvaliableSlotsForAppointmentsWithADoctor(doctorId: $doctorId, date: $date) {
slots
actualTimings
}
}
Variables
{
"doctorId": 2,
"date": "2024-09-28"
}
Request
None
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{
"data": {
"getAvaliableSlotsForAppointmentsWithADoctor": {
"slots": [
"09:00:00",
"09:30:00",
"10:00:00",
"10:30:00",
"11:00:00",
"11:30:00",
"12:00:00",
"12:30:00",
"14:30:00",
"15:00:00",
"15:30:00",
"16:00:00",
"16:30:00"
],
"actualTimings": [
"1727494200000",
"1727496000000",
"1727497800000",
"1727499600000",
"1727501400000",
"1727503200000",
"1727505000000",
"1727506800000",
"1727514000000",
"1727515800000",
"1727517600000",
"1727519400000",
"1727521200000"
]
}
}
}
Last modified: 2 months ago