Fix remaining old terminology references
- backend/app/main.py: grove/ -> project/ in SPA route check - frontend/vite.config.ts: /grove -> /project proxy - helm/orchard/templates/NOTES.txt: Updated API examples - migrations/001_initial.sql: Updated table/column names
This commit is contained in:
@@ -24,31 +24,31 @@ Orchard has been installed!
|
||||
{{- end }}
|
||||
|
||||
2. API Endpoints:
|
||||
- Health Check: GET /health
|
||||
- List Groves: GET /api/v1/groves
|
||||
- Create Grove: POST /api/v1/groves
|
||||
- Upload: POST /api/v1/grove/{grove}/{tree}/cultivate
|
||||
- Download: GET /api/v1/grove/{grove}/{tree}/+/{ref}
|
||||
- Health Check: GET /health
|
||||
- List Projects: GET /api/v1/projects
|
||||
- Create Project: POST /api/v1/projects
|
||||
- Upload: POST /api/v1/project/{project}/{package}/upload
|
||||
- Download: GET /api/v1/project/{project}/{package}/+/{ref}
|
||||
|
||||
3. Example Usage:
|
||||
|
||||
# Create a grove
|
||||
curl -X POST http://localhost:8080/api/v1/groves \
|
||||
# Create a project
|
||||
curl -X POST http://localhost:8080/api/v1/projects \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name": "my-project", "description": "My project", "is_public": true}'
|
||||
|
||||
# Create a tree
|
||||
curl -X POST http://localhost:8080/api/v1/grove/my-project/trees \
|
||||
# Create a package
|
||||
curl -X POST http://localhost:8080/api/v1/project/my-project/packages \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name": "releases", "description": "Release builds"}'
|
||||
|
||||
# Upload an artifact
|
||||
curl -X POST http://localhost:8080/api/v1/grove/my-project/releases/cultivate \
|
||||
curl -X POST http://localhost:8080/api/v1/project/my-project/releases/upload \
|
||||
-F "file=@./my-artifact.tar.gz" \
|
||||
-F "tag=v1.0.0"
|
||||
|
||||
# Download an artifact
|
||||
curl -O http://localhost:8080/api/v1/grove/my-project/releases/+/v1.0.0
|
||||
curl -O http://localhost:8080/api/v1/project/my-project/releases/+/v1.0.0
|
||||
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user