This commit is contained in:
53
README.md
53
README.md
@@ -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
|
||||
|
Reference in New Issue
Block a user