Get Works list
1 min
GET
https://dev1.frontu.com//client/api/v2/works
Header Parameters
- acceptstringDescriptionDefaultapplication/jsonAllowedapplication/jsonExampleExample with values
Responses
200
- object
- next_pagenumberrequired
- itemsobject[]required
- versionnumberrequired
- titleobject
- durationnumberrequired
- suggestedDurationobject
- unitobject
- workTypenumberrequired
- workTimeTypenumberrequired
- currencystringrequiredMin Length1
- vatstringrequiredMin Length1
- ratenumberrequired
- pricenumberrequired
- priceWithVatnumberrequired
- descriptionobject
- standartizedWorkobject
- titlestringrequiredMin Length1
- guidstringrequiredMin Length1
- systemIdstringrequiredMin Length1
- defaultDurationobject
- workspaceobject
- titlestringrequiredMin Length1
- serialNumberstringrequiredMin Length1
- guidstringrequiredMin Length1
- systemIdstringrequiredMin Length1
- typestringrequiredMin Length1
- taskobject
- titlestringrequiredMin Length1
- codestringrequiredMin Length1
- guidstringrequiredMin Length1
- systemIdstringrequiredMin Length1
- taskTemplateobject
- userobject
- titlestringrequiredMin Length1
- guidstringrequiredMin Length1
- systemIdobject
- guidstringrequiredMin Length1
- createdstringrequiredMin Length1
- updatedstringrequiredMin Length1
- dateOfInterventionstringDescription
- startTimestring
- endTimestring
- deletedbooleanrequired
- systemIdstringrequiredMin Length1
- equipmentobject
- titlestringrequiredMin Length1
- guidstringrequiredMin Length1
- systemIdstringrequiredMin Length1
curl
curl --request GET \
--url https://dev1.frontu.com//client/api/v2/works \
--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("https://dev1.frontu.com//client/api/v2/works", 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("https://dev1.frontu.com//client/api/v2/works")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://dev1.frontu.com//client/api/v2/works"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// OK
{
"next_page": 0,
"items": [
{
"version": 0,
"title": {},
"duration": 0,
"suggestedDuration": {},
"unit": {},
"workType": 0,
"workTimeType": 0,
"currency": "",
"vat": "",
"rate": 0,
"price": 0,
"priceWithVat": 0,
"description": {},
"standartizedWork": {
"title": "",
"guid": "",
"systemId": "",
"defaultDuration": {}
},
"workspace": {
"title": "",
"serialNumber": "",
"guid": "",
"systemId": "",
"type": ""
},
"task": {
"title": "",
"code": "",
"guid": "",
"systemId": ""
},
"taskTemplate": {},
"user": {
"title": "",
"guid": "",
"systemId": {}
},
"guid": "",
"created": "",
"updated": "",
"dateOfIntervention": "",
"startTime": "",
"endTime": "",
"deleted": false,
"systemId": "",
"equipment": {
"title": "",
"guid": "",
"systemId": ""
}
}
]
}