Naar de inhoud

Oude clientapi

GET app.tooltagger.com/clientapi/tool

Bouw hier niets nieuws op. Dit is de API van de vorige applicatie. Hij is nog bereikbaar voor bestaande koppelingen, maar krijgt geen nieuwe functies meer. Voor een nieuwe koppeling gebruik je de huidige API op api.tooltagger.com.

Autorisatie

In de oude applicatie genereer je een sleutel via Account › API › API-key genereren. Stuur die met elk request mee als header:

Headerhttp
x-api-key: TT-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Tools opvragen

Verzoekbash
curl "https://app.tooltagger.com/clientapi/tool?where.inactive=false&orderBy=ValidityDate&descending=false&skip=0&take=50" \
  -H "x-api-key: $TOOLTAGGER_API_KEY"

Parameters

NaamStandaardToelichting
skip0Paginering. Met 0 haal je de eerste pagina op.
take10Paginagrootte. Maximaal 50.
where.name—Zoekt op naam, code of veld van een tool, categorie, locatie of beheerder.
where.inactive—Met false toon je alleen actieve tools.
where.CategoryId—Filter op categorie.
where.LocationId—Filter op locatie.
where.CustomerId—Filter op klant.
where.CompanyId—Filter op inspectiebedrijf.
where.ExpiryDateFrom—Verloopdatum vanaf, als YYYY-MM-DD.
where.ExpiryDateTill—Verloopdatum tot, als YYYY-MM-DD.
orderByValidityDateSorteerveld: ValidityDate of Code.
descendingfalseOplopend of aflopend sorteren.

Antwoord

Per tool, waarbij category en location het volledige object bevatten:

200 OKjson
{
  "id": 1,
  "code": "ToolCode",
  "name": "ToolName",
  "status": "Passed",
  "categoryId": 1,
  "locationId": 1,
  "managerId": "",
  "companyId": 1,
  "customerId": 1,
  "inactive": false,
  "tenantId": 1,
  "validityDate": "2000-12-01T00:00:00",
  "category": {},
  "location": {}
}