Add API for GitManager features #54
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
기존에 구현하였던 리비전 기능에 API를 추가하였습니다.
API
/problems/init/{problem_id}: 문제 생성 API/changes/{problem_id}/commitbody: {"message": "..."}: 스테이지에 올라온 변경사항을 커밋한다./changes/{problem_id}/log: 커밋 로그를 가져온다.[ { "message": "create message", "paths": [ { "path": "tests/e.py", "status": "ADDED" }, { "path": "tests/tmp.py", "status": "ADDED" } ], "time": 1760694085, "user": "admin" }, { "message": "create message", "paths": [ { "path": "solutions/c.py", "status": "ADDED" } ], "time": 1760693623, "user": "admin" } ]/changes/{problem_id}/status: 커밋되지 않은 변경사항(스테이징 영역)을 가져온다.[ { "status": "ADDED", "path": "solutions/e.py" } ]