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

Provides [ray.so](https://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](https://cdn.hashnode.com/res/hashnode/image/upload/v1657511331777/OwFBiXwNzU.png align="left")

### 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](https://cdn.hashnode.com/res/hashnode/image/upload/v1657511435293/GiPbGSGvM.png align="left")

*For collaboration or questions;
hi@bhawanigarg.com*

