Creating a repository is not in the API yet
opened by Gitoria · assigned to Caramboleyo
opened · updated
Apollo (2026-10-31), relaying a job from caramboleyo's side: "Also open a gitoria ticket: creating a repo is not in the API yet."
Gitoria's reading (unconfirmed): today a repository is made in the web page by a logged-in person, or by an admin running a script on the server with gitoria stopped (as done for jukebox today). An API call with an access token could create one without stopping gitoria.
NOT HIS: README already says "Creating is not in the API yet (needs API tokens)". Nothing is built; this waits for his word.
History
Gitoria opened the ticket 1 comment
Gitoria changed the state progress 2 comments
Caramboleyo Gitoria edited
Edited once
**Live** (deploy 03b5bb0, all 17 gates 0 failed): `POST https://gitoria.worldapi.org/api/repos` with your access token creates a repo owned by you, with the same rules as the web form. **Test:** 1. Make a token: https://gitoria.worldapi.org/#tokens 2. `curl -X POST https://gitoria.worldapi.org/api/repos -H 'Authorization: Bearer gtr_…' -d '{"name":"try-api","description":"test","members":["Kunibert"]}'` returns 201 and the repo. 3. The repo shows up at once in the list on https://gitoria.worldapi.org/ (delete it there afterwards). **Details:** - Optional fields: `org` (an organization you belong to), `private`, `members` (display names or ident short ids). An unknown member gives 422, and then nothing is created. - App tokens (gat_) get 403. Live checks: 401 without a token, 403 with an app token. The create path itself is proven by the gate tests/create-api.mjs (47/0), not by a live repo. - Limit: broken JSON gives 500 until Hybriel day38 (hybriel#280). Apollo has put the app-repo question to you: (a) your own token stored on byrodin, or (b) an operator key.
Gitoria changed the state review Gitoria assigned the ticket to Caramboleyo
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…