1+ [
2+ {
3+ "endpoint" : " /auth/register" ,
4+ "method" : " POST" ,
5+ "description" : " /auth/register - with email verification" ,
6+ "request" : {
7+ "url" : " http://localhost:3010/auth/register" ,
8+ "method" : " POST" ,
9+ "headers" : {},
10+ "body" : {
11+ "email" : " verify-test-1778884125157@example.com" ,
12+ "password" : " TestPassword123!"
13+ }
14+ },
15+ "response" : {
16+ "status" : 201 ,
17+ "data" : {
18+ "createdAt" : " 2026-05-15T22:28:45Z" ,
19+ "email" : " verify-test-1778884125157@example.com" ,
20+ "emailVerified" : true ,
21+ "id" : 793 ,
22+ "sessionExpiresAt" : " 2026-06-14T22:28:45Z" ,
23+ "sessionToken" : " 6024a179774777642460a5c82f00cb28e429912b1ff3bf108c7dce16afa9514f" ,
24+ "subscriptionStatus" : " free"
25+ }
26+ },
27+ "codeExamples" : {
28+ "javascript" : " const baseUrl = 'http://localhost:3010';\n const path = '/auth/register';\n const url = `${baseUrl}${path}`;\n\n const response = await fetch(url, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n \" email\" : \" verify-test-1778884125157@example.com\" ,\n \" password\" : \" TestPassword123!\"\n })\n });\n const data = await response.json();\n console.log(data);" ,
29+ "curl" : " curl -X POST 'http://localhost:3010/auth/register' \\\n -H \" Content-Type: application/json\" \\\n -d '{\" email\" :\" verify-test-1778884125157@example.com\" ,\" password\" :\" TestPassword123!\" }'" ,
30+ "python" : " import requests\n\n base_url = 'http://localhost:3010'\n path = '/auth/register'\n url = f'{base_url}{path}'\n\n response = requests.post(\n url,\n json={\n \" email\" : \" verify-test-1778884125157@example.com\" ,\n \" password\" : \" TestPassword123!\"\n }\n )\n data = response.json()\n print(data)" ,
31+ "typescript" : " import axios from 'axios';\n\n (async () => {\n const baseUrl = 'http://localhost:3010';\n const path = '/auth/register';\n const url = `${baseUrl}${path}`;\n\n const response = await axios({\n method: 'post',\n headers: {\n 'Content-Type': 'application/json'\n },\n url,\n data: {\n \" email\" : \" verify-test-1778884125157@example.com\" ,\n \" password\" : \" TestPassword123!\"\n }\n });\n const data = response.data;\n console.log(data);\n })();" ,
32+ "emojicode" : " 📦 sockets 🏠\n\n 💭 Emojicode HTTP Client\n 💭 Compile: emojicodec example.🍇 -o example\n 💭 Run: ./example\n\n 🏁 🍇\n 💭 Connection settings\n 🔤localhost🔤 ➡️ host\n 3010 ➡️ port\n 🔤/auth/register🔤 ➡️ path\n\n 💭 Request body\n 🔤{\" email\" :\" verify-test-1778884125157@example.com\" ,\" password\" :\" TestPassword123!\" }🔤 ➡️ body\n\n 💭 Build HTTP request\n 🔤POST /auth/register HTTP/1.1❌r❌nHost: localhost:3010❌r❌nContent-Type: application/json❌r❌nContent-Length: 79❌r❌n❌r❌n{\" email\" :\" verify-test-1778884125157@example.com\" ,\" password\" :\" TestPassword123!\" }🔤 ➡️ request\n\n 💭 Connect and send\n 🍺 🆕📞 host port❗ ➡️ socket\n 🍺 💬 socket 📇 request❗❗\n \n 💭 Read and print response\n 🍺 👂 socket 4096❗ ➡️ data\n 😀 🍺 🔡 data❗❗\n \n 💭 Close socket\n 🚪 socket❗\n 🍉"
33+ }
34+ }
35+ ]
0 commit comments