cURL
curl --request POST \ --url https://api.example.com/v1/repositories \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "git_url": "<string>", "branch": "<string>" } '
{}
リポジトリを登録する。
新規: git clone → S3 保存 → DB insert 既存: 既存データをそのまま返す レスポンスの created フラグで新規/既存を区別する。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1 - 2083
Successful Response