Skip to content

hrkt/pandoc-as-a-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandoc-as-a-service

It does...

pandoc-as-a-service executes the command with options specified in the url, with STDIN from HTTP request body, and returns STDOUT in HTTP response body.

It does not...

  • authenticate request
  • limit rate

future work

see GitHub project : https://github.com/hrkt/command-as-a-service/projects

How to run

  1. execute server.
$ docker run -p 8080:8080 hrkt/pandoc-as-a-service
  1. make HTTP POST request
$ curl "http://localhost:8080/usr/bin/pandoc?-f&markdown&-t&html" --dat-binary @testdata/sample.md

dev how-to

build container

$ make build-container

run container

$ make run-container

License

MIT

About

a example for call pandoc via REST-like API

Resources

License

Stars

Watchers

Forks

Packages

No packages published