Skip to content

An unofficial REST API for the Carbon project written in Go

License

Notifications You must be signed in to change notification settings

FirePing32/go-carbon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO-Carbon

Convert source code from GH gists into shareable images.
Inspired from the Carbon project.

This project is an effort to build a REST API implimentation of the same in Go. It does not completely work as the original project, and many parameters are yet to be added.

Build

I use air for hot reloading. Otherwise:

go build -o server . && ./server

Query Params

Endpoint: /api

Query Param Description
gistid Gist ID of the file
fsize Font size
fcolor Font color
bgcolor Background color

Status Codes

  • 404: Invalid Gist ID
  • 400: Missing query params

About

An unofficial REST API for the Carbon project written in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages