nomadro/docs/public-api.md
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00

55 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Nomadro Public API / SDK / MCP / Skill
结构化对外服务面(同源):
```
packages/sdk/tools.json
│
├─ OpenAPI → GET /api/public/v1/openapi.json
├─ HTTP → /api/public/v1/*
├─ SDK → @nomadro/sdk createNomadroClient
├─ MCP → @nomadro/mcp (stdio)
└─ Skill → .cursor/skills/nomadro-platform
apps/miniprogram/weapp/ai-pkg/socialSkill
```
## 部署
| 环境 | 说明 |
|---|---|
| `https://nomadro.com` | **主站 / 默认**(美国 VPS) |
| `https://nomadro.cn` | 中国独立站;`.com` 中文轨测稳后再同步 |
| `localhost:3000` | 本地 Next |
可选鉴权:服务端设 `NOMADRO_PUBLIC_API_KEY`,客户端头 `X-Nomadro-Key`。
## 文档界面
| URL | 说明 |
|---|---|
| [`/developers`](https://nomadro.com/developers) | Scalar 交互式 API Reference(深色) |
| `/api/public/docs` | 307 → `/developers` |
| `/api/public/v1/openapi.json` | 原始 OpenAPI |
## 端点摘要
| Method | Path | Tool |
|---|---|---|
| GET | `/api/public/v1/health` | health |
| GET | `/api/public/v1/meta` | getMeta |
| GET | `/api/public/v1/config` | getConfig |
| GET | `/api/public/v1/tools` | — |
| GET | `/api/public/v1/openapi.json` | — |
| GET | `/api/public/v1/social/cities` | listMapCities |
| GET | `/api/public/v1/social/cities/search` | searchCities |
| GET | `/api/public/v1/social/meetups` | listMeetups |
| GET | `/api/public/v1/social/meetups/{id}` | openMeetup |
| GET | `/api/public/v1/social/gigs` | listGigs |
| POST | `/api/public/v1/social/gigs/{id}/apply` | applyGig |
| GET | `/api/public/v1/social/join` | joinSocial |
| GET | `/api/public/v1/social/routes` | listSocialRoutes |
| GET | `/api/public/v1/vip/check?email=` | checkVip |
| GET | `/api/public/v1/nav/links` | listNavLinks |
Social 读接口优先反代 `SOCIAL_API_URL`,失败回落本地种子(离线兜底)。