{"id":26907301,"url":"https://github.com/saumya-shrestha/joke-api","last_synced_at":"2026-04-14T19:32:28.670Z","repository":{"id":284270522,"uuid":"947685990","full_name":"Saumya-Shrestha/Joke-API","owner":"Saumya-Shrestha","description":"Joke-API is a simple RESTful API to display jokes. It supports CRUD operations for jokes and allows filtering by joke type.","archived":false,"fork":false,"pushed_at":"2025-03-25T02:36:46.000Z","size":867,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T11:49:39.762Z","etag":null,"topics":["expressjs","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saumya-Shrestha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-13T04:48:36.000Z","updated_at":"2025-03-25T02:36:50.000Z","dependencies_parsed_at":"2025-03-25T05:01:55.248Z","dependency_job_id":null,"html_url":"https://github.com/Saumya-Shrestha/Joke-API","commit_stats":null,"previous_names":["saumya-shrestha/joke-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Saumya-Shrestha/Joke-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumya-Shrestha%2FJoke-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumya-Shrestha%2FJoke-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumya-Shrestha%2FJoke-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumya-Shrestha%2FJoke-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saumya-Shrestha","download_url":"https://codeload.github.com/Saumya-Shrestha/Joke-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saumya-Shrestha%2FJoke-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31812968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expressjs","nodejs","rest-api"],"created_at":"2025-04-01T11:40:19.626Z","updated_at":"2026-04-14T19:32:28.663Z","avatar_url":"https://github.com/Saumya-Shrestha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Joke-API\n\nJoke-API is a simple RESTful API built with Node.js and Express to deliver joy to the world through jokes. It supports CRUD operations for jokes and allows filtering by joke type.\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/your-username/Joke-API.git\n   cd Joke-API\n   ```\n\n2. Install the dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Start the server:\n\n   ```bash\n   node index.js\n   ```\n\n4. The API will be available at http://localhost:3000.\n\n## Usage\n\n| Method   | Endpoint        | Description                          |\n| -------- | --------------- | ------------------------------------ |\n| `GET`    | `/random`       | Get a random joke.                   |\n| `GET`    | `/jokes/:id`    | Get a specific joke by ID.           |\n| `GET`    | `/filter?type=` | Filter jokes by type.                |\n| `POST`   | `/jokes`        | Add a new joke.                      |\n| `PUT`    | `/jokes/:id`    | Replace a joke by ID.                |\n| `PATCH`  | `/jokes/:id`    | Edit a joke by ID.                   |\n| `DELETE` | `/jokes/:id`    | Delete a specific joke by ID.        |\n| `DELETE` | `/all`          | Delete all jokes (requires API key). |\n\n## Demo\n\n![Demo](./demo.gif)\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaumya-shrestha%2Fjoke-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaumya-shrestha%2Fjoke-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaumya-shrestha%2Fjoke-api/lists"}