Arghub API Reference
Authentication
Warning
In production, this must be done over HTTPS.
Registration
You can create a new account.
1 |
|
username
- a usernamepassword
- a password
Logging In
You can authenticate a session.
1 |
|
The login endpoint expects a form-data body with the following fields:
username
- a usernamepassword
- a password
Logging Out
You can deauthenticate a session.
1 |
|
Repository
Searching
You can search for models and datasets. Results are returned in JSON format. For models, this includes the model name, author, type, slug, description and also, if applicable, the slug of the dataset the model was trained on. For datasets, this includes the dataset name, author, slug and description.
1 2 |
|
Downloading
You can download models and datasets.
1 2 |
|
Uploading
Warning
Requires authentication.
You can upload models and datasets.
1 2 |
|
The model endpoint expects a multipart/form-data
body with the following fields:
name
- the model nameslug
- a model slugtype
- a model type id (corresponding to the id stored in the database)dataset
- the dataset id (corresponding to the id stored in the database)description
- the model descriptionfile
- a .zip archive containing the packaged model (see Model Packaging)
The dataset endpoint expects a multipart/form-data
body with the following fields:
name
- the model nameslug
- a dataset slugdescription
- the model descriptionfile
- a .zip archive containing the dataset in an HDF5 file.