SAS Model Manager tracks model versions. A data scientist wants to programmatically list all versions of a registered model via the REST API. Which endpoint pattern is correct?
Select an answer to reveal the explanation.
Short Explanation
Here's the deal — you want the GET /modelRepository/models/{modelId}/versions endpoint because SAS Model Manager treats versions as a sub-resource of a model. The GET call returns all registered versions for that modelId.
Full Explanation
The correct endpoint is GET /modelRepository/models/{modelId}/versions because SAS Model Manager follows RESTful conventions: model versions are a sub-resource of models. That GET returns all registered versions for a specific model. The POST /models/{modelId}/listVersions endpoint is wrong because listing is a GET operation, not POST. The GET /modelManager/projects/{projectId}/models endpoint is wrong because it lists models within a project, not versions of a specific model. The GET /modelRepository/repositories/{repoId}/versions endpoint is wrong because versions are accessed per model, not per repository.