lablup / lablup/backend.ai

Add Revision REST API endpoints

Open
#7,382 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Overview

Implement REST API endpoints for DeploymentRevision management.

## Tasks

1. Create REST endpoints:
- POST /deployments/{id}/revisions - Create new revision
- GET /deployments/{id}/revisions - List revisions
- GET /deployments/{id}/revisions/{revision_number} - Get revision detail
- POST /deployments/{id}/revisions/{revision_number}/promote - Promote revision
- POST /deployments/{id}/rollback - Rollback to previous revision
1. Implement request validation using DTOs
1. Implement proper error responses
1. Add OpenAPI documentation
1. Write integration tests

## Notes

- Promote/rollback should update deployment_state and traffic_status accordingly

JIRA Issue: BA-3432

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.