{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihzvg3pqeu4ldyvaezsj43wlbofj5u46hkc3ynwncsa53k7mcbyp4",
"uri": "at://did:plc:25rdn5elo5izoxrmtis34zuk/app.bsky.feed.post/3mogqyzfgnba2"
},
"coverImage": {
"$type": "blob",
"ref": {
"$link": "bafkreih472fk3nfbr6ipmjapks3w2qzpniswerz6iqnajwtj65xuszls7i"
},
"mimeType": "image/webp",
"size": 32978
},
"path": "/avery_/24-build-your-own-api-3b0n",
"publishedAt": "2026-06-16T21:33:02.000Z",
"site": "https://dev.to",
"tags": [
"webdev",
"programming",
"beginners",
"fullstack"
],
"textContent": "> BootCamp by Dr.Angela\n\n**1. Building Your Own APIs**\n\n * You can build your own APIs using frameworks like Node.js + Express.\n * API Platforms\n * RapidAPI : Marketplace for testing and using public APIs\n * APIs can be:\n * Monetized APIs : Data collection services, Algorithm / service-based APIs, Simplified interface for complex systems\n * Internal APIs (Private APIs) : Used only within a company or application\n * What Makes an API RESTful?\n * A RESTful API follows these principles:\n * Uses HTTP methods (GET, POST, PUT, PATCH, DELETE)\n * Returns data in JSON format\n * Follows Client–Server architecture\n * Is stateless (each request is independent)\n * Is resource-based (everything is treated as a resource)\n * Operates over the web (HTTP/HTTPS)\n\n\n\n**2. Creating GET, POST, PATCH, and DELETE Routes**\n\n * Express Routes Overview : In Express, routes define how the server responds to client requests.\n * Route Parameters(:) : Used to capture dynamic values from the URL.\n * ex) app.get(\"/users/:id\", (req, res) => { console.log(req.params.id); });\n * :id → dynamic parameter\n * Accessed via req.params\n * Callback Functions in Array Methods : Commonly used when working with data in APIs(find, filter, findIndex, ...)\n * ex) const user = users.find(user => user.id === 1);\n * PUT vs PATCH\n * PUT : Replace entire resource, Update full object\n * PATCH : Modify part of resource, Partial update\n * DELETE Operation : Used to remove data from a collection.\n * ex) users.splice(index, 1);\n * splice() : removes elements from an array , Commonly used for delete logic in in-memory data\n\n",
"title": "25. Build Your Own API"
}