ML Prep API (v1)
Download OpenAPI description
Languages
Servers
Mock server
http://{{your_prep_ip_address}}/
Request
Note that sources come from the GetSources method below and are case sensitive. For example, to retrieve the first 1,000 traces (the limit per call) starting from the beginning for sources ANE and SYE, the call looks like this: localhost:4601/api/traces?offset=0&limit=1000&sources=ANE,SYE
Security
Bearer
- Mock server
http://{{your_prep_ip_address}}/api/v1/traces
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'http://{{your_prep_ip_address}}/api/v1/traces?offset=0&limit=0&sources=string&startTime=2019-08-24T14%3A15%3A22Z&endTime=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "totalItemCount": 0, "currentOffset": 0, "items": [ { … } ] }
- Mock server
http://{{your_prep_ip_address}}/api/v1/traces/export
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'http://{{your_prep_ip_address}}/api/v1/traces/export?startTime=2019-08-24T14%3A15%3A22Z&endTime=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- Mock server
http://{{your_prep_ip_address}}/api/v1/traces/sources
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'http://{{your_prep_ip_address}}/api/v1/traces/sources' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
"string"