:-'Generic Commit'
Some checks failed
Build-Test-Publish / Build (push) Failing after 7s

This commit is contained in:
Your Name
2025-05-29 23:12:46 +12:00
parent 2e66f7562a
commit af21860a09

View File

@@ -125,12 +125,50 @@ curl -X PUT \
```
GET /{hash}
GET /{label}:{tag}
GET /object/{hash}
GET /object/{label}:{tag}
```
Example:
```bash
curl http://localhost:8080/abc123 > abc123.txt
curl http://localhost:8080/test:latest > test.sh
curl http://localhost:8080/object/abc123 > abc123.txt
```
### Get Object Metadata
```
GET /meta/{hash}
GET /meta/{label}:{tag}
```
Example:
```bash
curl http://localhost:8080/meta/abc123
curl http://localhost:8080/meta/test:latest
```
### Get Hash for Label:Tag
```
GET /hash/{label}:{tag}
```
Example:
```bash
curl http://localhost:8080/hash/test:latest
```
### Get Version for Label:Tag
```
GET /version/{label}:{tag}
```
Example:
```bash
curl http://localhost:8080/version/test:latest
```
### Check if a File Exists
@@ -160,12 +198,23 @@ curl -H "Authorization: Bearer your-token" http://localhost:8080/deleteobject?ha
### List All Objects
```
GET /list
GET /dir
```
Example:
```bash
curl http://localhost:8080/list
curl http://localhost:8080/dir
```
### Status Endpoint
```
GET /status
```
Example:
```bash
curl http://localhost:8080/status
```
## Database Schema