Skip to content

pottava/ngc-registry-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST APIs for NVIDIA GPU Cloud (NGC)

You can retrieve repository / image information from NGC via simple REST API.

Usage

Run API server

pushd app
go mod vendor
popd
docker-compose -f app/runtime.yml up

Consume APIs

signin

curl -s -X POST -H 'Content-Type:application/json' -d '{"email":"[email protected]","password":"Passw0rd"}' http://localhost:9000/api/v1/signin

get repositories

curl -s -X GET -H 'Content-Type:application/json' -H 'Authorization:base64encodedsession' http://localhost:9000/api/v1/repositories

get images

curl -s -X GET -H 'Content-Type:application/json' -H 'Authorization:base64encodedsession' http://localhost:9000/api/v1/repositories/nvidia/tensorflow/images