Unanswered
Is There Any Api Reference? Somewhere In The Docs I Can See The Signature Of Methods/Classes And See What Arguments They Accept And Description?
Before I'M Rushing To Ask Questions Here Myself, I'D Prefer To Do As Much Learning As I Can Through The Docs
Hi WackyRabbit7
First always check the functions on the Task object, they are the most straight forward access to the system.
Then if you need general purpose API calls, currently they are only documented in the doc-string of the API schema (that said it should be quite documented)
You can check all the endpoints https://github.com/allegroai/trains/tree/master/trains/backend_api/services/v2_8
And finally if you want to easily use the RestAPI :from trains.backend_api.session.client import APIClient client = APIClient() client.tasks.get_all(only_field=['id'])
This will call the https://github.com/allegroai/trains/blob/master/trains/backend_api/services/v2_8/tasks.py#L4182 endpoint
125 Views
0
Answers
4 years ago
one year ago