Get the List of Vets from a clinic
1 min
GET
/api/v1/vets
Query Parameters
- filter[email]stringDescription
- filter[status]booleanDescription
- includestringDescription
- sortstringDescription
- per_pageintegerDescriptionDefault15
Responses
200
- object
- dataVet[]
- idintegerExample
- first_nameintegerExample
- last_namestringExample
- full_namestringExample
- name_with_titlestringExample
- emailstringExample
- phonestringExample
- avatarstringExample
- stampstringExample
- license_numberstringExample
- job_titlestringExample
- deleted_atstring<date-time>
- activebooleanExample
- video_linkstringExample
- public_appointment_linkstringExample
- typestring<veterinarian | technician | groomer>
- two_factor_enabledbooleanExample
- has_chat_userbooleanExampleDescription
- linkslinks
- metameta
curl
curl --request GET \
--url '/api/v1/vets?per_page=15' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/api/v1/vets?per_page=15", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/api/v1/vets?per_page=15")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/api/v1/vets?per_page=15"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// successful operation
{
"data": [
{
"id": 1,
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"name_with_title": "Dr. John Doe",
"email": "[email protected]",
"phone": "123456789",
"avatar": "https://vet.digitail.io/images/profilepic.jpg",
"stamp": "https://vet.digitail.io/images/signature.jpg",
"license_number": "123456789",
"job_title": "Dr.",
"deleted_at": "",
"active": true,
"video_link": "https://digitail.com/video",
"public_appointment_link": "https://digitail.com/clinics/clinic-slug/vet-slug",
"type": "",
"two_factor_enabled": true,
"has_chat_user": true
}
],
"links": {},
"meta": {}
}