API: Repos
Git hosting with visibility, roles, secrets, code search, and smart HTTP.
Every HTML route returns JSON with Accept: application/json. Authentication: session cookie, X-API-KEY, Authorization: Bearer or Basic.
/reposguestAccessible plus public repositories, newest first. Guests see public repositories only.
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos'
const response = await fetch("/repos", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"repos": []
}
Not sent yet.
/repos/newMemberCreate form for name, visibility, and short description.
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/new'
const response = await fetch("/repos/new", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/new", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"repos": []
}
Not sent yet.
/reposMemberCreates a repository. Names allow letters, digits, dot, _ and -, no leading dot.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | body | yes |
visibilityAllowed: public, hidden, secret | string | body | no |
description | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos'
const response = await fetch("/repos", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"data": {
"name": "garden",
"uid": "..."
},
"ok": true,
"redirect": "/repos/garden"
}
Not sent yet.
/repos/{name}guestFiles, rendered README, and clone URL. Public and hidden are readable by link, only public is listed, secret 404s for strangers.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden'
const response = await fetch("/repos/{name}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"files": [],
"repo": {
"name": "garden"
}
}
Not sent yet.
/repos/{name}/treeguestTop-level entries of the default branch, same shape as the directory listing.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/tree'
const response = await fetch("/repos/{name}/tree", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/tree", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"files": [],
"path": "",
"repo": {
"name": "garden"
}
}
Not sent yet.
/repos/{name}/tree/{path}guestEntries of one directory at the default branch with type, size, and whether the file opens in the site, depends on the browser, or is download only. Files redirect to the blob view.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
path | string | path | no |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/tree/src'
const response = await fetch("/repos/{name}/tree/{path}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/tree/{path}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"files": [
{
"kind": "code",
"label": "Python",
"name": "main.py",
"path": "src/main.py",
"support": "full",
"url_path": "src/main.py",
"viewable": true
}
],
"path": "src",
"repo": {
"name": "garden"
}
}
Not sent yet.
/repos/{name}/blob/{path}guestNumbered, highlighted source, rendered Markdown, inline images, video, audio, and PDF. Binary types show a download action. Directories redirect to the tree view.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
path | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/blob/src/main.py'
const response = await fetch("/repos/{name}/blob/{path}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/blob/{path}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"file": {
"kind": "code",
"language": "python"
},
"line_count": 1,
"path": "src/main.py",
"raw_url": "/repos/garden/raw/src/main.py",
"text": "print(1)\n"
}
Not sent yet.
/repos/{name}/raw/{path}guestFile bytes with the media type for images, video, audio, and PDF, text/plain for source, and attachment for binaries. Supports byte ranges and resolves Git LFS objects. Add download=1 to force an attachment.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
path | string | path | yes |
download | string | query | no |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/raw/docs/screenshot.png?download=1'
const response = await fetch("/repos/{name}/raw/{path}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/raw/{path}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/settingsMemberVisibility, default branch, short description and pull request settings. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/settings'
const response = await fetch("/repos/{name}/settings", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/settings", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"repo": {
"name": "garden"
}
}
Not sent yet.
/repos/{name}/settingsMemberStores visibility, default branch, and short description. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
visibilityAllowed: public, hidden, secret | string | body | no |
default_branch | string | body | no |
description | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/settings'
const response = await fetch("/repos/{name}/settings", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/settings", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"data": {
"uid": "..."
},
"ok": true,
"redirect": "/repos/garden/settings"
}
Not sent yet.
/repos/{name}/deleteMemberSoft delete. Needs repository.delete.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/delete'
const response = await fetch("/repos/{name}/delete", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/delete", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/membersMemberGrant table plus invite form. Needs repository.access.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/members'
const response = await fetch("/repos/{name}/members", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/members", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"members": []
}
Not sent yet.
/repos/{name}/membersMemberGrants a role or raw perms mask to a user uid or username. Needs repository.access.read or repository.access.write plus every bit granted.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
user | string | body | yes |
roleAllowed: owner, maintainer, writer, reader | string | body | no |
perms | integer | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/members'
const response = await fetch("/repos/{name}/members", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/members", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"data": {
"perms": 1,
"user_uid": "..."
},
"ok": true,
"redirect": "/repos/garden/members"
}
Not sent yet.
/repos/{name}/members/{user_uid}/revokeMemberRemoves a member grant. Needs repository.access.write. Last owner self-revoke is blocked.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
user_uid | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/members/.../revoke'
const response = await fetch("/repos/{name}/members/{user_uid}/revoke", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/members/{user_uid}/revoke", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/secretsMemberNames and metadata only, values are never rendered. Needs repository.secrets.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/secrets'
const response = await fetch("/repos/{name}/secrets", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/secrets", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"secrets": []
}
Not sent yet.
/repos/{name}/secretsMemberSeals a value under the per-repo key. Needs repository.secrets.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
name | string | body | yes |
value | password | body | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/secrets'
const response = await fetch("/repos/{name}/secrets", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/secrets", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"data": {
"name": "DEPLOY_TOKEN"
},
"ok": true,
"redirect": "/repos/garden/secrets"
}
Not sent yet.
/repos/{name}/secrets/{secret_uid}/deleteMemberDeletes one sealed secret. Needs repository.secrets.delete.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
secret_uid | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/secrets/.../delete'
const response = await fetch("/repos/{name}/secrets/{secret_uid}/delete", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/secrets/{secret_uid}/delete", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/secrets/rotateMemberIssues a new per-repo key and re-seals every secret. Needs repository.secrets.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/secrets/rotate'
const response = await fetch("/repos/{name}/secrets/rotate", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/secrets/rotate", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/git/{name}/info/refsguestSmart HTTP advertisement. Upload-pack is public for public repos, receive-pack needs auth plus repository.write or push-to-create.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
serviceAllowed: git-upload-pack, git-receive-pack | string | query | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/git/garden/info/refs?service=git-upload-pack'
const response = await fetch("/git/{name}/info/refs", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/git/{name}/info/refs", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
/git/{name}/git-upload-packguestSmart HTTP fetch and clone body exchange.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X POST -H 'Accept: application/json' 'https://molodetz.nl/git/garden/git-upload-pack'
const response = await fetch("/git/{name}/git-upload-pack", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/git/{name}/git-upload-pack", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
/git/{name}/git-receive-packMemberSmart HTTP push. Oversize pushes are rejected with 413 before unpack.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/git-receive-pack'
const response = await fetch("/git/{name}/git-receive-pack", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/git/{name}/git-receive-pack", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
/repos/{name}/info/refsguestSame smart HTTP advertisement as /git/{name}/info/refs, served on the page URL so git clients clone from /repos directly.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
serviceAllowed: git-upload-pack, git-receive-pack | string | query | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/info/refs?service=git-upload-pack'
const response = await fetch("/repos/{name}/info/refs", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/info/refs", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
/repos/{name}/git-upload-packguestSame smart HTTP fetch exchange as /git/{name}/git-upload-pack, served on the page URL.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X POST -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/git-upload-pack'
const response = await fetch("/repos/{name}/git-upload-pack", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/git-upload-pack", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
/repos/{name}/git-receive-packMemberSame smart HTTP push as /git/{name}/git-receive-pack, served on the page URL.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/git-receive-pack'
const response = await fetch("/repos/{name}/git-receive-pack", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/git-receive-pack", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
/git/{name}/info/lfs/objects/batchguestBatch upload or download negotiation. Upload needs repository.write, download needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
operationAllowed: upload, download | string | body | yes |
objects | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/git/garden/info/lfs/objects/batch'
const response = await fetch("/git/{name}/info/lfs/objects/batch", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/git/{name}/info/lfs/objects/batch", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"hash_algo": "sha256",
"objects": [
{
"oid": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 5
}
],
"transfer": "basic"
}
Not sent yet.
/git/{name}/info/lfs/objects/{oid}guestStreams one content-addressed object as application/octet-stream. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
oid | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/git/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
const response = await fetch("/git/{name}/info/lfs/objects/{oid}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/git/{name}/info/lfs/objects/{oid}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"encoding": "raw bytes",
"oid": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 5
}
/git/{name}/info/lfs/objects/{oid}MemberStores one object after verifying its sha256. Re-upload overwrites. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
oid | string | path | yes |
curl -X PUT -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
const response = await fetch("/git/{name}/info/lfs/objects/{oid}", { method: "PUT", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("PUT", BASE + "/git/{name}/info/lfs/objects/{oid}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"oid": "0000000000000000000000000000000000000000000000000000000000000000"
}
/git/{name}/info/lfs/locksMemberLists file locks with cursor paging. Limit clamps to 1-100. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
limit | integer | query | no |
cursor | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/info/lfs/locks?limit=100&cursor='
const response = await fetch("/git/{name}/info/lfs/locks", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/git/{name}/info/lfs/locks", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"locks": [
{
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
]
}
Not sent yet.
/git/{name}/info/lfs/locksMemberLocks one repo-relative path. Conflict returns 409 with the existing lock. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
path | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/git/garden/info/lfs/locks'
const response = await fetch("/git/{name}/info/lfs/locks", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/git/{name}/info/lfs/locks", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"lock": {
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
}
Not sent yet.
/git/{name}/info/lfs/locks/{id}MemberDeletes one lock. Non-owners pass force true. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
id | string | path | yes |
force | boolean | body | no |
curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"force": false}' 'https://molodetz.nl/git/garden/info/lfs/locks/...'
const response = await fetch("/git/{name}/info/lfs/locks/{id}", { method: "DELETE", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("DELETE", BASE + "/git/{name}/info/lfs/locks/{id}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"lock": {
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
}
Not sent yet.
/git/{name}/info/lfs/locks/verifyMemberLists only the caller-owned locks with cursor paging. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
limit | integer | query | no |
cursor | string | query | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/git/garden/info/lfs/locks/verify?limit=100&cursor='
const response = await fetch("/git/{name}/info/lfs/locks/verify", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/git/{name}/info/lfs/locks/verify", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"locks": [
{
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
]
}
Not sent yet.
/repos/{name}/info/lfs/objects/batchguestSame batch negotiation as /git/{name}/info/lfs/objects/batch, served on the page URL for repos clones.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
operationAllowed: upload, download | string | body | yes |
objects | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/info/lfs/objects/batch'
const response = await fetch("/repos/{name}/info/lfs/objects/batch", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/info/lfs/objects/batch", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"hash_algo": "sha256",
"objects": [
{
"oid": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 5
}
],
"transfer": "basic"
}
Not sent yet.
/repos/{name}/info/lfs/objects/{oid}guestSame object stream as /git/{name}/info/lfs/objects/{oid}, served on the page URL. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
oid | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
const response = await fetch("/repos/{name}/info/lfs/objects/{oid}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/info/lfs/objects/{oid}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"encoding": "raw bytes",
"oid": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 5
}
/repos/{name}/info/lfs/objects/{oid}MemberSame object store as /git/{name}/info/lfs/objects/{oid}, served on the page URL. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
oid | string | path | yes |
curl -X PUT -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
const response = await fetch("/repos/{name}/info/lfs/objects/{oid}", { method: "PUT", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("PUT", BASE + "/repos/{name}/info/lfs/objects/{oid}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"oid": "0000000000000000000000000000000000000000000000000000000000000000"
}
/repos/{name}/info/lfs/locksMemberSame lock list as /git/{name}/info/lfs/locks, served on the page URL. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
limit | integer | query | no |
cursor | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/info/lfs/locks?limit=100&cursor='
const response = await fetch("/repos/{name}/info/lfs/locks", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/info/lfs/locks", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"locks": [
{
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
]
}
Not sent yet.
/repos/{name}/info/lfs/locksMemberSame lock creation as /git/{name}/info/lfs/locks, served on the page URL. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
path | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/info/lfs/locks'
const response = await fetch("/repos/{name}/info/lfs/locks", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/info/lfs/locks", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"lock": {
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
}
Not sent yet.
/repos/{name}/info/lfs/locks/{id}MemberSame unlock as /git/{name}/info/lfs/locks/{id}, served on the page URL. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
id | string | path | yes |
force | boolean | body | no |
curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"force": false}' 'https://molodetz.nl/repos/garden/info/lfs/locks/...'
const response = await fetch("/repos/{name}/info/lfs/locks/{id}", { method: "DELETE", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("DELETE", BASE + "/repos/{name}/info/lfs/locks/{id}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"lock": {
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
}
Not sent yet.
/repos/{name}/info/lfs/locks/verifyMemberSame verification as /git/{name}/info/lfs/locks/verify, served on the page URL. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
limit | integer | query | no |
cursor | string | query | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/info/lfs/locks/verify?limit=100&cursor='
const response = await fetch("/repos/{name}/info/lfs/locks/verify", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/info/lfs/locks/verify", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"locks": [
{
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
]
}
Not sent yet.
/{owner}/{repo}.git/info/lfs/objects/batchguestGitHub-compatible batch alias. The owner segment is ignored, repos resolve by flat name.
| Field | Type | Location | Required |
|---|---|---|---|
owner | string | path | yes |
repo | string | path | yes |
operationAllowed: upload, download | string | body | yes |
objects | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/someone/garden.git/info/lfs/objects/batch'
const response = await fetch("/{owner}/{repo}.git/info/lfs/objects/batch", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/{owner}/{repo}.git/info/lfs/objects/batch", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"hash_algo": "sha256",
"objects": [
{
"oid": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 5
}
],
"transfer": "basic"
}
Not sent yet.
/{owner}/{repo}.git/info/lfs/objects/{oid}guestGitHub-compatible object download alias. The owner segment is ignored.
| Field | Type | Location | Required |
|---|---|---|---|
owner | string | path | yes |
repo | string | path | yes |
oid | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/someone/garden.git/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
const response = await fetch("/{owner}/{repo}.git/info/lfs/objects/{oid}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/{owner}/{repo}.git/info/lfs/objects/{oid}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"encoding": "raw bytes",
"oid": "0000000000000000000000000000000000000000000000000000000000000000",
"size": 5
}
/{owner}/{repo}.git/info/lfs/objects/{oid}MemberGitHub-compatible object upload alias. The owner segment is ignored. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
owner | string | path | yes |
repo | string | path | yes |
oid | string | path | yes |
curl -X PUT -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/someone/garden.git/info/lfs/objects/0000000000000000000000000000000000000000000000000000000000000000'
const response = await fetch("/{owner}/{repo}.git/info/lfs/objects/{oid}", { method: "PUT", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("PUT", BASE + "/{owner}/{repo}.git/info/lfs/objects/{oid}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"oid": "0000000000000000000000000000000000000000000000000000000000000000"
}
/{owner}/{repo}.git/info/lfs/locksMemberGitHub-compatible lock list alias. The owner segment is ignored. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
owner | string | path | yes |
repo | string | path | yes |
limit | integer | query | no |
cursor | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/someone/garden.git/info/lfs/locks?limit=100&cursor='
const response = await fetch("/{owner}/{repo}.git/info/lfs/locks", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/{owner}/{repo}.git/info/lfs/locks", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"locks": [
{
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
]
}
Not sent yet.
/{owner}/{repo}.git/info/lfs/locksMemberGitHub-compatible lock creation alias. The owner segment is ignored. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
owner | string | path | yes |
repo | string | path | yes |
path | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/someone/garden.git/info/lfs/locks'
const response = await fetch("/{owner}/{repo}.git/info/lfs/locks", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/{owner}/{repo}.git/info/lfs/locks", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"lock": {
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
}
Not sent yet.
/{owner}/{repo}.git/info/lfs/locks/{id}MemberGitHub-compatible unlock alias. The owner segment is ignored. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
owner | string | path | yes |
repo | string | path | yes |
id | string | path | yes |
force | boolean | body | no |
curl -X DELETE -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"force": false}' 'https://molodetz.nl/someone/garden.git/info/lfs/locks/...'
const response = await fetch("/{owner}/{repo}.git/info/lfs/locks/{id}", { method: "DELETE", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("DELETE", BASE + "/{owner}/{repo}.git/info/lfs/locks/{id}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"lock": {
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
}
Not sent yet.
/{owner}/{repo}.git/info/lfs/locks/verifyMemberGitHub-compatible lock verification alias. The owner segment is ignored. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
owner | string | path | yes |
repo | string | path | yes |
limit | integer | query | no |
cursor | string | query | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/someone/garden.git/info/lfs/locks/verify?limit=100&cursor='
const response = await fetch("/{owner}/{repo}.git/info/lfs/locks/verify", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/{owner}/{repo}.git/info/lfs/locks/verify", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"locks": [
{
"id": "...",
"locked_at": "2026-01-01T00:00:00+00:00",
"owner": {
"name": "lezer"
},
"path": "assets/sprite.bin"
}
]
}
Not sent yet.
/repos/searchMemberSearch page across every readable repository.
| Field | Type | Location | Required |
|---|---|---|---|
q | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/search?q=migrate'
const response = await fetch("/repos/search", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/search", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"query": "",
"scope": "repos-global"
}
Not sent yet.
/repos/{name}/searchMemberSearch page scoped to one repository. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
q | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/search?q=migrate'
const response = await fetch("/repos/{name}/search", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/search", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"query": "",
"scope": "repos-one"
}
Not sent yet.
/repos/search/apiMemberJSON hits plus telemetry. Query q is capped at 500 chars, count clamps to 1-100.
| Field | Type | Location | Required |
|---|---|---|---|
q | string | query | no |
count | integer | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/search/api?q=migrate&count=10'
const response = await fetch("/repos/search/api", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/search/api", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"results": [],
"scope": "repos-global",
"telemetry": {}
}
Not sent yet.
/repos/{name}/search/apiMemberJSON hits plus telemetry scoped to one repository. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
q | string | query | no |
count | integer | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/search/api?q=migrate&count=10'
const response = await fetch("/repos/{name}/search/api", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/search/api", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"results": [],
"scope": "repos-one",
"telemetry": {}
}
Not sent yet.
/repos/search/streamMemberServer-sent stream with result, telemetry, and done events.
| Field | Type | Location | Required |
|---|---|---|---|
q | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/search/stream?q=migrate'
const response = await fetch("/repos/search/stream", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/search/stream", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"event": "done"
}
/repos/{name}/search/streamMemberServer-sent stream scoped to one repository. Needs repository.read.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
q | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/search/stream?q=migrate'
const response = await fetch("/repos/{name}/search/stream", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/search/stream", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"event": "done"
}
/repos/{name}/branchesguestActive branches: default, branches with open pull requests, and branches with commits in the last 90 days.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/branches'
const response = await fetch("/repos/{name}/branches", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/branches", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"branches": [],
"stale_branches": 0
}
Not sent yet.
/repos/{name}/compareMemberMerge check, commits and diff between a base and a head branch, plus the creation form.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
base | string | query | no |
head | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/garden/compare?base=main&head=feature'
const response = await fetch("/repos/{name}/compare", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/compare", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"check": {
"status": "mergeable"
}
}
Not sent yet.
/repos/pullsMemberPull requests across every readable repository with status, review, draft, merge, author and involvement filters.
| Field | Type | Location | Required |
|---|---|---|---|
stateAllowed: open, merged, closed, all | string | query | no |
involvedAllowed: authored, review_requested, reviewed | string | query | no |
curl -X GET -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/repos/pulls?state=open&involved=authored'
const response = await fetch("/repos/pulls", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/pulls", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"counts": {},
"pulls": []
}
Not sent yet.
/repos/{name}/pullsguestPull requests of one repository with status tabs and filters.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
stateAllowed: open, merged, closed, all | string | query | no |
reviewAllowed: any, approved, changes_requested, review_required, unreviewed | string | query | no |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls?state=open&review=any'
const response = await fetch("/repos/{name}/pulls", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/pulls", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"counts": {
"open": 0
},
"pulls": []
}
Not sent yet.
/repos/{name}/pullsMemberOpens a pull request from head into base. Needs repository.write.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
base | string | body | yes |
head | string | body | yes |
title | string | body | yes |
body | string | body | no |
reviewers | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls'
const response = await fetch("/repos/{name}/pulls", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"ok": true,
"redirect": "/repos/garden/pulls/1"
}
Not sent yet.
/repos/{name}/pulls/{number}guestConversation, commits or files changed of one pull request, with merge box and reviewers.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
tabAllowed: conversation, commits, files | string | query | no |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1?tab=conversation'
const response = await fetch("/repos/{name}/pulls/{number}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/pulls/{number}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"pull": {
"number": 1
}
}
Not sent yet.
/repos/{name}/pulls/{number}/editMemberChanges title, description or base branch. Author or writers, open pull requests only.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
title | string | body | no |
body | string | body | no |
base | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/edit'
const response = await fetch("/repos/{name}/pulls/{number}/edit", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/edit", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/wipMemberAdds or removes the work-in-progress title prefix.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/wip'
const response = await fetch("/repos/{name}/pulls/{number}/wip", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/wip", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/closeMemberCloses an open pull request. Author or writers.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/close'
const response = await fetch("/repos/{name}/pulls/{number}/close", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/close", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/reopenMemberReopens a closed pull request when both branches exist.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reopen'
const response = await fetch("/repos/{name}/pulls/{number}/reopen", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/reopen", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/commentsMemberAdds a conversation comment; action=close closes the pull request as well.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
body | string | body | no |
actionAllowed: comment, close | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/comments'
const response = await fetch("/repos/{name}/pulls/{number}/comments", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/comments", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/comments/{comment_uid}/editMemberEdits your own comment.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
comment_uid | string | path | yes |
body | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/comments/{comment_uid}/edit'
const response = await fetch("/repos/{name}/pulls/{number}/comments/{comment_uid}/edit", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/comments/{comment_uid}/edit", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/comments/{comment_uid}/deleteMemberDeletes your own comment; repository administrators may delete any comment.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
comment_uid | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/comments/{comment_uid}/delete'
const response = await fetch("/repos/{name}/pulls/{number}/comments/{comment_uid}/delete", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/comments/{comment_uid}/delete", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/code-commentsMemberComments on a diff line as a single comment or as part of your pending review; thread replies to a conversation.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
body | string | body | yes |
modeAllowed: single, review | string | body | no |
path | string | body | no |
sideAllowed: new, old | string | body | no |
line | integer | body | no |
thread | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/code-comments'
const response = await fetch("/repos/{name}/pulls/{number}/code-comments", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/code-comments", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/threads/{thread_uid}/{action}MemberResolves or unresolves a conversation. Author, writers and official reviewers.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
thread_uid | string | path | yes |
actionAllowed: resolve, unresolve | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/threads/{thread_uid}/{action}'
const response = await fetch("/repos/{name}/pulls/{number}/threads/{thread_uid}/{action}", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/threads/{thread_uid}/{action}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/reviewsMemberSubmits a review: approve, comment or reject (request changes). Authors cannot approve or reject their own pull request.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
typeAllowed: approve, comment, reject | string | body | yes |
body | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviews'
const response = await fetch("/repos/{name}/pulls/{number}/reviews", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/reviews", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/reviews/discardMemberDeletes your pending review and its pending comments.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviews/discard'
const response = await fetch("/repos/{name}/pulls/{number}/reviews/discard", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/reviews/discard", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/reviews/{review_uid}/dismissMemberDismisses an approval or change request with a message. Repository administrators only.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
review_uid | string | path | yes |
message | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviews/{review_uid}/dismiss'
const response = await fetch("/repos/{name}/pulls/{number}/reviews/{review_uid}/dismiss", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/reviews/{review_uid}/dismiss", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/reviewersMemberRequests or re-requests a review from a user who can read the repository.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
user | string | body | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviewers'
const response = await fetch("/repos/{name}/pulls/{number}/reviewers", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/reviewers", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/reviewers/{user_uid}/removeMemberRemoves a pending review request.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
user_uid | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/reviewers/{user_uid}/remove'
const response = await fetch("/repos/{name}/pulls/{number}/reviewers/{user_uid}/remove", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/reviewers/{user_uid}/remove", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/viewedMemberMarks or unmarks a changed file as viewed for yourself.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
path | string | body | yes |
viewed | boolean | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/viewed'
const response = await fetch("/repos/{name}/pulls/{number}/viewed", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/viewed", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/checkguestCurrent merge status, advisory warnings and assisted merge availability.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1/check'
const response = await fetch("/repos/{name}/pulls/{number}/check", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/pulls/{number}/check", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"pull": {
"merge_status": "mergeable"
},
"warnings": []
}
Not sent yet.
/repos/{name}/pulls/{number}/delete-branchMemberDeletes the head branch of a closed or merged pull request when it has no new commits.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/delete-branch'
const response = await fetch("/repos/{name}/pulls/{number}/delete-branch", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/delete-branch", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/restore-branchMemberRecreates a deleted head branch from refs/pull/N/head.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/restore-branch'
const response = await fetch("/repos/{name}/pulls/{number}/restore-branch", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/restore-branch", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/mergeMemberStarts a merge job: merge, rebase, rebase-merge, squash, fast-forward-only or manually-merged; assisted=1 resolves conflicts with the assistant. Writers may merge their own pull requests.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
styleAllowed: merge, rebase, rebase-merge, squash, fast-forward-only, manually-merged | string | body | no |
title | string | body | no |
message | string | body | no |
commit | string | body | no |
delete_branch | boolean | body | no |
assisted | boolean | body | no |
acknowledged | string | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/merge'
const response = await fetch("/repos/{name}/pulls/{number}/merge", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/merge", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"data": {
"job": "..."
},
"ok": true
}
Not sent yet.
/repos/{name}/pulls/{number}/updateMemberMerges the base branch into the head branch when that merge is clean.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/update'
const response = await fetch("/repos/{name}/pulls/{number}/update", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/update", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/pulls/{number}/merge/jobs/{job_uid}guestState of a merge job.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
job_uid | string | path | yes |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1/merge/jobs/{job_uid}'
const response = await fetch("/repos/{name}/pulls/{number}/merge/jobs/{job_uid}", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/pulls/{number}/merge/jobs/{job_uid}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"job": {
"status": "running"
}
}
Not sent yet.
/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/streamguestServer-sent events: line, phase, telemetry, state, cleanup, error, result, done.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
job_uid | string | path | yes |
after | integer | query | no |
curl -X GET -H 'Accept: application/json' 'https://molodetz.nl/repos/garden/pulls/1/merge/jobs/{job_uid}/stream'
const response = await fetch("/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/stream", { method: "GET", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("GET", BASE + "/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/stream", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"event": "done"
}
/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/cancelMemberCancels a running merge job; cleanup always runs. Starter or repository administrators.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
number | integer | path | yes |
job_uid | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/pulls/1/merge/jobs/{job_uid}/cancel'
const response = await fetch("/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/cancel", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/pulls/{number}/merge/jobs/{job_uid}/cancel", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/repos/{name}/settings/pullsMemberAllowed merge styles, default style, branch deletion default, manual merge, merge detection and assisted merging.
| Field | Type | Location | Required |
|---|---|---|---|
name | string | path | yes |
merge_styles | string | body | no |
default_merge_style | string | body | no |
assisted_merge | boolean | body | no |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{}' 'https://molodetz.nl/repos/garden/settings/pulls'
const response = await fetch("/repos/{name}/settings/pulls", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/repos/{name}/settings/pulls", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
No example
Not sent yet.
/admin/users/{uid}/login-asAdminSwitches into the account with a stacked session. Senior administrators and deactivated accounts are refused.
| Field | Type | Location | Required |
|---|---|---|---|
uid | string | path | yes |
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/admin/users/{uid}/login-as'
const response = await fetch("/admin/users/{uid}/login-as", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/admin/users/{uid}/login-as", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"data": {
"impersonated_by": {
"uid": "..."
},
"uid": "..."
},
"ok": true,
"redirect": "/"
}
Not sent yet.
/admin/login-as/exitAdminDeletes the impersonated session and restores the administrator cookie.
curl -X POST -H 'Accept: application/json' -H 'X-API-KEY: YOUR_API_KEY' 'https://molodetz.nl/admin/login-as/exit'
const response = await fetch("/admin/login-as/exit", { method: "POST", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("POST", BASE + "/admin/login-as/exit", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{
"data": {
"impersonated_by": null
},
"ok": true,
"redirect": "/admin/users"
}
Not sent yet.