https://github.com/pottava/ngc-registry-api
REST APIs for NVIDIA GPU Cloud
https://github.com/pottava/ngc-registry-api
docker-registry ngc rest-api
Last synced: about 1 year ago
JSON representation
REST APIs for NVIDIA GPU Cloud
- Host: GitHub
- URL: https://github.com/pottava/ngc-registry-api
- Owner: pottava
- Created: 2018-05-02T02:23:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T01:27:49.000Z (over 3 years ago)
- Last Synced: 2025-04-08T23:29:28.535Z (about 1 year ago)
- Topics: docker-registry, ngc, rest-api
- Language: Go
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST APIs for NVIDIA GPU Cloud (NGC)
You can retrieve repository / image information from NGC via simple REST API.
## Usage
### Run API server
```console
pushd app
go mod vendor
popd
docker-compose -f app/runtime.yml up
```
### Consume APIs
signin
```console
curl -s -X POST -H 'Content-Type:application/json' -d '{"email":"ngc-user@example.com","password":"Passw0rd"}' http://localhost:9000/api/v1/signin
```
get repositories
```console
curl -s -X GET -H 'Content-Type:application/json' -H 'Authorization:base64encodedsession' http://localhost:9000/api/v1/repositories
```
get images
```console
curl -s -X GET -H 'Content-Type:application/json' -H 'Authorization:base64encodedsession' http://localhost:9000/api/v1/repositories/nvidia/tensorflow/images
```