Public
Documentation Settings

Dev Joke API

Simple API to get and post Dev jokes.

Feel free to add new Dev jokes.Let's have a huge collection of Dev jokes to share with our developer community.

Play with the App

Connect with me on Twitter

GETGet Dev Joke

https://backend-omega-seven.vercel.app/api/getjoke

Get a random Dev Joke using this request.

Example Request
curl
curl --location 'https://backend-omega-seven.vercel.app/api/getjoke'
200 OK
Example Response
html
[
  {
    "name": "Udhay",
    "twitter": "AskUdhay",
    "question": "How did your dog eat your coding assignment?",
    "punchline": "It took him a couple bytes."
  }
]
Content-Type

text/html; charset=utf-8

Connection

keep-alive

access-control-allow-origin

*

access-control-allow-headers

X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version

access-control-allow-methods

GET,OPTIONS,PATCH,DELETE,POST,PUT

access-control-allow-credentials

true

date

Tue, 29 Jun 2021 15:15:46 GMT

cache-control

public, max-age=0, must-revalidate

content-length

139

etag

W/"8b-ksdSaQ/+yj3x5g5aNl+9qeLnHsE"

x-vercel-cache

MISS

age

0

server

Vercel

x-vercel-id

cle1::iad1::zjrwj-1624979745301-bf13bda0a37e

strict-transport-security

max-age=63072000; includeSubDomains; preload

POSTPost Dev Joke

https://backend-omega-seven.vercel.app/api/addjoke

Add new Dev Joke using this Post request.

Make sure you send the correct JSON parameter.

Plain Text
{
    "name": "YOUR_NAME",
    "twitter": "YOUR_TWITTER_HANDLE",
    "question": "Why is the Javascript developer sad?",
    "punchline": "Because they do not Node how to Express themselves."
}
Bodyraw (json)
json
{
    "name": "Udhay",
    "twitter": "AsUdhay",
    "question": "Why is the Javascript developer sad?",
    "punchline": "Because they do not Node how to Express themselves."
}
Example Request
curl
curl --location 'https://backend-omega-seven.vercel.app/api/addjoke' \
--data '{
    "name": "Udhay",
    "twitter": "AskUdhay",
    "question": "Why is the Javascript developer sad?",
    "punchline": "Because they do not Node how to Express themselves."
}'
201 Created
Example Response
html
Joke created
Content-Type

text/html; charset=utf-8

Connection

keep-alive

access-control-allow-origin

*

access-control-allow-headers

X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version

access-control-allow-methods

GET,OPTIONS,PATCH,DELETE,POST,PUT

access-control-allow-credentials

true

date

Tue, 29 Jun 2021 16:01:49 GMT

content-length

12

etag

W/"c-mVdK2V2lUNVcgq6Pgs2mC0bfUCo"

x-vercel-cache

MISS

server

Vercel

x-vercel-id

cle1::iad1::qrzbq-1624982508779-c9aedcc07136

strict-transport-security

max-age=63072000; includeSubDomains; preload

cache-control

s-maxage=0