MCPcopy Index your code
hub / github.com/DadJokes-io/Dad_Jokes_API

github.com/DadJokes-io/Dad_Jokes_API @v0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1 ↗ · + Follow
60 symbols 175 edges 62 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Overview

This section should contain an overview of the data provided and the API purpose.

USING THE API

We built this API to have an unlimited supply of dad jokes for our DadJokes application. If you find yourself overwhelmed, we organized this documentation into four major areas.

  • Getting started introduces you to the operations offered by the API.
  • API calls gives you examples of those operations
  • Field reference Lists and describes the type of inforamtion provided by the API

Getting Started

The current version of the API lives at https://dad-jokes.p.rapidapi.com

Endpoints

Endpoint What it does
GET /random/joke Returns a joke object that contains a setup, punchline, type and id
GET /joke/:id Returns a joke object with a specific id.
GET /joke/type/:type Returns a joke object randomly with a specific type.
GET /joke/search Returns a list of jokes matching your term

Types

Type
General
Knock-Knock
Programming

API calls

This API supports a data response in JSON format.

/random/joke

{
  "success": true,
  "body": [
    {
      "_id": "5f80ccd641785ba7c7d27ba2",
      "type": "general",
      "setup": "Did you hear about the guy who invented Lifesavers?",
      "punchline": "They say he made a mint."
    }
  ]
}

/joke/:id

/joke/5f80ccd641785ba7c7d27ba2

{
  "success": true,
  "body": {
    "_id": "5f80ccd641785ba7c7d27ba2",
    "type": "general",
    "setup": "Did you hear about the guy who invented Lifesavers?",
    "punchline": "They say he made a mint."
  }
}

/joke/type/:type

/joke/type/knock-knock

{
  "success": true,
  "body": [
    {
      "_id": "5f80ccd641785ba7c7d27b55",
      "type": "knock-knock",
      "setup": "Knock knock. \n Who's there? \n A broken pencil. \n A broken pencil who?",
      "punchline": "Never mind. It's pointless."
    },
    {
      "_id": "5f80ccd641785ba7c7d27b6b",
      "type": "knock-knock",
      "setup": "Knock knock. \n Who's there? \n Opportunity.",
      "punchline": "That is impossible. Opportunity doesn’t come knocking twice!"
    },
    {
      "_id": "5f80ccd641785ba7c7d27b56",
      "type": "knock-knock",
      "setup": "Knock knock. \n Who's there? \n Cows go. \n Cows go who?",
      "punchline": "No, cows go moo."
    },
    {
      "_id": "5f80ccd641785ba7c7d27b57",
      "type": "knock-knock",
      "setup": "Knock knock. \n Who's there? \n Little old lady. \n Little old lady who?",
      "punchline": "I didn't know you could yodel!"
    },
    {
      "_id": "5f80ccd641785ba7c7d27b86",
      "type": "knock-knock",
      "setup": "Knock knock. \n Who's there? \n Hatch. \n Hatch who?",
      "punchline": "Bless you!"
    }
  ]
}

/joke/search

/joke/search?term=frog

{
  "success": true,
  "body": [
    {
      "_id": "5f80ccd641785ba7c7d27c3a",
      "type": "general",
      "setup": "What happens to a frog's car when it breaks down?",
      "punchline": "It gets toad."
    },
    {
      "_id": "5f80ccd641785ba7c7d27b68",
      "type": "general",
      "setup": "What happens to a frog's car when it breaks down?",
      "punchline": "It gets toad away"
    }
  ]
}

Field reference

Field name Description Data type
ID Unique identifier string
TYPE Identifer of group string
COUNT Number of wanted items string

Extension points exported contracts — how you extend this code

Body (Interface)
(no doc)
src/services/user/LoginUser.service.ts
Body (Interface)
(no doc)
src/services/user/CreateUser.service.ts
Body (Interface)
(no doc)
src/services/user/accountExist.service.ts

Core symbols most depended-on inside this repo

oID
called by 16
src/util/oID.ts
sessionToken
called by 9
src/util/getSessionToken.ts
authUser
called by 7
src/services/user/authUser.service.ts
config
called by 4
src/app.ts
jokeByIdService
called by 4
src/services/joke/JokeById.service.ts
countTypeService
called by 4
src/services/type/CountType.service.ts
accountExistService
called by 2
src/services/user/accountExist.service.ts
UpdateUserService
called by 2
src/services/user/UpdateUser.service.ts

Shape

Function 52
Interface 3
Method 3
Class 2

Languages

TypeScript100%

Modules by API surface

src/app.ts5 symbols
src/services/user/accountExist.service.ts2 symbols
src/services/user/LoginUser.service.ts2 symbols
src/services/user/CreateUser.service.ts2 symbols
src/controllers/user/LikeJoke.controller.ts2 symbols
src/util/oID.ts1 symbols
src/util/getSessionToken.ts1 symbols
src/services/user/authUser.service.ts1 symbols
src/services/user/UpdateUser.service.ts1 symbols
src/services/user/UnlikeJoke.service.ts1 symbols
src/services/user/PublicUser.service.ts1 symbols
src/services/user/ProfileUser.service.ts1 symbols

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add Dad_Jokes_API \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact