Download OpenAPI specification:
Minimal Go HTTP server template demonstrating Postgres + GORM via a /posts CRUD surface. Stays on the standard library net/http router (Go 1.22+ method-prefix routing); no framework lock-in.
Create response is the full record (id, timestamps included) — useful
as a receipt so the client can deep-link to the new resource. Reads
return the projection only; see GET /posts/{slug}.
| title required | string |
| body required | string |
{- "title": "string",
- "body": "string"
}{- "id": "43bca205-ec29-406e-abcf-62bef8806b24",
- "slug": "my-first-post",
- "title": "My first post",
- "body": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}