Changes in 3eaa35ecb1
Jonathan Miller — docs(rebrand): brand caps MokoGit -> MokoGIT
| 1 | 1 | # Metadata API |
| 2 | 2 | |
| 3 | 3 | Per-repo identity, governance, deployment, and build metadata. |
| 4 | 4 | |
| 5 | 5 | ## Endpoints |
| 6 | 6 | |
| 7 | 7 | | Method | Endpoint | Auth | Description | |
| 8 | 8 | |--------|----------|------|-------------| |
| 9 | 9 | | GET | `/api/v1/repos/{owner}/{repo}/metadata` | Public | Get metadata settings | |
| 10 | 10 | | PUT | `/api/v1/repos/{owner}/{repo}/metadata` | Admin | Update metadata settings (merge semantics) | |
| 11 | 11 | |
| 12 | 12 | ## Request/Response |
| 13 | 13 | |
| 14 | 14 | ```json |
| 15 | 15 | { |
| 16 | - "name": "MokoGit", | |
| 16 | + "name": "MokoGIT", | |
| 17 | 17 | "org": "MokoConsulting", |
| 18 | 18 | "description": "Moko fork of Git", |
| 19 | 19 | "license_spdx": "GPL-3.0-or-later", |
| 20 | 20 | "license_name": "GNU General Public License v3", |
| 21 | 21 | "platform": "go", |
| 22 | 22 | "standards_version": "05.01.00", |
| 23 | 23 | "standards_source": "https://git.mokoconsulting.tech/MokoConsulting/MokoCLI", |
| 24 | 24 | "language": "Go", |
| 25 | 25 | "extension_type": "application", |
| 26 | 26 | "entry_point": "./", |
| 27 | - "display_name": "Application - MokoGit", | |
| 27 | + "display_name": "Application - MokoGIT", | |
| 28 | 28 | "deploy_host": "git.mokoconsulting.tech", |
| 29 | 29 | "deploy_port": "2918", |
| 30 | 30 | "deploy_user": "mokoconsulting", |
| 31 | 31 | "deploy_path": "/opt/git", |
| 32 | 32 | "docker_image": "mokogit", |
| 33 | 33 | "docker_registry": "", |
| 34 | 34 | "container_name": "mokogit", |
| 35 | 35 | "health_url": "https://git.mokoconsulting.tech" |
| 36 | 36 | } |
| 37 | 37 | ``` |
| 38 | 38 | |
| 39 | 39 | ## Notes |
| 40 | 40 | |
| 41 | 41 | - GET is **public** -- no authentication required. |
| 42 | 42 | - PUT uses **merge semantics** -- only provided fields are updated, others are preserved. |
| 43 | 43 | - `display_name` is **read-only** -- computed server-side as `{ExtensionType} - {Name}`. |
| 44 | 44 | - `extension_type` replaces the former `package_type` field (renamed in v1.27.0). |
| 45 | 45 | - The endpoint was renamed from `/manifest` to `/metadata` in v1.27.0. |
| 46 | 46 | - `.mokogit/manifest.xml` file is no longer used. Metadata is managed exclusively via the API. |
| 47 | 47 |