Claude
Skill
api
Application programming interface.
Download
dhaupin-vant-models_public_vant_skills_vant-skill-api-e1e348e.zip · 0 KB
Install
skills CLI
npx skills add https://github.com/dhaupin/vant/tree/main/models/public/vant/skills/vant-skill-api
Claude Code
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dhaupin-vant@llmmart
Git
git clone https://github.com/dhaupin/vant.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole dhaupin/vant collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
API
Application programming interface.
When To Use
- HTTP services
- REST/GraphQL
- External data
What To Do
1. REST
| Method | What |
|---|---|
| GET | Read |
| POST | Create |
| PUT | Replace |
| PATCH | Update |
| DELETE | Remove |
2. Request
// Fetch
const res = await fetch('https://api.example.com/users')
const data = await res.json()
// Node
const axios = require('axios')
const res = await axios.get('https://api.example.com/users')
3. GraphQL
query {
user(id: 1) {
name
email
}
}
4. Auth
| Type | Header |
|---|---|
| Bearer | Authorization: Bearer token |
| Basic | Authorization: Basic base64(user:pass) |
| API Key | X-API-Key: key |
Role: API Developer Input: Endpoint Output: Data
Programmable.
Files (vant)
-
SKILL.md 962 B
--- name: api description: Application programming interface. license: MIT metadata: author: vant version: "1.0" --- # API > Application programming interface. --- ## When To Use - HTTP services - REST/GraphQL - External data --- ## What To Do ### 1. REST | Method | What | |--------|------| | GET | Read | | POST | Create | | PUT | Replace | | PATCH | Update | | DELETE | Remove | ### 2. Request ```javascript // Fetch const res = await fetch('https://api.example.com/users') const data = await res.json() // Node const axios = require('axios') const res = await axios.get('https://api.example.com/users') ``` ### 3. GraphQL ```graphql query { user(id: 1) { name email } } ``` ### 4. Auth | Type | Header | |------|--------| | Bearer | Authorization: Bearer token | | Basic | Authorization: Basic base64(user:pass) | | API Key | X-API-Key: key | --- **Role**: API Developer **Input**: Endpoint **Output**: Data > Programmable.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.