Skip to content

Build endpoint to list training model versions

We need a new endpoint to list the training model versions for a specified model: ListModelVersions. The url will take a path parameter a model id.

The endpoint must list all versions available to the connected user (if he has access to the model):

  • as admin and contributor, list ALL versions
  • as guest, list only versions with tags and state available

The serializer must expose:

  • id
  • description
  • tag
  • state
  • size
  • configuration
  • parent ID

The queryset must order version by their creation date