Blog API
Simple Go BE to serve blog posts
Authors
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
PSQL_HOSTNAME
PSQL_USERNAME
PSQL_PASSWORD
API Reference
Get all items
GET /posts
Get a post by id
GET /posts/:id
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Id of post to fetch |