Skip to content

klaborda/blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Update a post by id

  PATCH /posts/:id
Parameter Type Description
id string Required. Id of post to update

Delete a post by id

  DELETE  /posts/:id
Parameter Type Description
id string Required. Id of post to delete

About

klaborda.me blog API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published