Genbase
ApiRepository

Create new repository

POST
/repository/create

Authorization

AuthorizationRequiredBearer <token>

JWT Token for authenticated users (obtained via /auth/jwt/login).

In: header

Request Body

multipart/form-dataRequired
repo_fileRequiredfile

Zip file with initial repository content

Format: "binary"
repo_nameRequiredstring
curl -X POST "http://localhost:8000/repository/create" \
  -H "Authorization: Bearer <token>" \
  -F repo_file="string" \
  -F repo_name="string"

Successful Response

{
  "repo_name": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "status": "string"
}