Make Beautiful And Prettified Code Screenshots By Just Sending A POST or GET Request

Make Beautiful And Prettified Code Screenshots By Just Sending A POST or GET Request

Provides ray.so as a REST API version!

Bhawani Garg's photo
Bhawani Garg
·Jul 11, 2022·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Provides ray.so as a REST API version. Make beautiful and prettified code screenshots by just sending a POST or GET request.

https://rayso.herokuapp.com/api

Parameters

Untitled.png

Using GET Request /

It uses query parameters.

https://rayso.herokuapp.com/api?code=console.log(%22Hello%20World%22)%3B&language=javascript&title=Test

Using POST Request /

Body is JSON with these params:

{
    "code": "console.log('Hello World');",
    "language": "javascript",
    "title": "Test"
}

Example output

68747470733a2f2f692e6962622e636f2f4c513338717a522f6170692e706e67.png

For collaboration or questions;

 
Share this