Get a list of Tags
1 min
GET
/api/v1/tags
Query Parameters
- filter[entity_type]stringrequiredDescription
- filter[color_level]integerDescription
- filter[value]stringDescription
- filter[trashed]stringDescription
Responses
200
- object
- dataTag[]
- idintegerExample
- entity_typestringExample
- clinic_idintegerExample
- color_levelstringExample
- valuestringExample
- created_atstring<date-time>Example
- deleted_atstring<date-time>
- linkslinks
- metameta
curl
curl --request GET \
--url '/api/v1/tags?filter[entity_type]=string' \
--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/tags?filter[entity_type]=string", 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/tags?filter[entity_type]=string")
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/tags?filter[entity_type]=string"
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,
"entity_type": "App\\\\Models\\\\Pet",
"clinic_id": 766,
"color_level": "#FF0000",
"value": "Happy",
"created_at": "2021-10-05T12:52:53.000000Z",
"deleted_at": ""
}
],
"links": {},
"meta": {}
}