{"id":20424091,"url":"https://github.com/spm999/book-api","last_synced_at":"2026-05-17T17:11:47.947Z","repository":{"id":220357636,"uuid":"736932699","full_name":"spm999/book-api","owner":"spm999","description":"Book Store Api","archived":false,"fork":false,"pushed_at":"2024-02-03T13:56:14.000Z","size":677,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-10T23:00:28.735Z","etag":null,"topics":["api","crud","delete","get","nodejs","put","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spm999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-12-29T09:46:56.000Z","updated_at":"2025-01-07T14:36:13.000Z","dependencies_parsed_at":"2025-01-15T14:54:44.316Z","dependency_job_id":"096b0b41-36a5-4fa6-a0cc-ea0771ee307f","html_url":"https://github.com/spm999/book-api","commit_stats":null,"previous_names":["spm999/book-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spm999/book-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spm999%2Fbook-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spm999%2Fbook-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spm999%2Fbook-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spm999%2Fbook-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spm999","download_url":"https://codeload.github.com/spm999/book-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spm999%2Fbook-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33147342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["api","crud","delete","get","nodejs","put","rest-api"],"created_at":"2024-11-15T07:08:37.572Z","updated_at":"2026-05-17T17:11:47.915Z","avatar_url":"https://github.com/spm999.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Book API\n\nThis is a simple RESTful API built using Node.js and Express for managing a collection of books. The API supports basic CRUD (Create, Read, Update, Delete) operations on the book resources.\n\n## Endpoints\n\n### Get all books\n\n- **URL:** `/books`\n- **Method:** `GET`\n- **Description:** Retrieve a list of all books.\n- **Response:** Returns a JSON array of books.\n\n### Get a specific book by ID\n\n- **URL:** `/books/:id`\n- **Method:** `GET`\n- **Description:** Retrieve details of a specific book by providing its ID in the request parameters.\n- **Response:** Returns a JSON object representing the book if found, or a 404 status with an error message if not found.\n\n### Add a new book\n\n- **URL:** `/books`\n- **Method:** `POST`\n- **Description:** Add a new book to the collection.\n- **Request Body:** Should include a JSON object representing the new book.\n- **Response:** Returns the newly added book with a 201 status.\n\n### Update a book by ID\n\n- **URL:** `/books/:id`\n- **Method:** `PUT`\n- **Description:** Update details of a specific book by providing its ID in the request parameters.\n- **Request Body:** Should include a JSON object representing the updated book.\n- **Response:** Returns the updated book if found, or a 404 status with an error message if not found.\n\n### Delete a book by ID\n\n- **URL:** `/books/:id`\n- **Method:** `DELETE`\n- **Description:** Delete a specific book by providing its ID in the request parameters.\n- **Response:** Returns the deleted book if found, or a 404 status with an error message if not found.\n\n## Usage\n\n1. Clone this repository.\n2. Install dependencies using `npm install`.\n3. Start the server with `npm start`.\n4. Access the API at `http://localhost:3000/books`.\n\nFeel free to use and modify this API for your own projects. For more details on how to interact with the API, refer to the provided endpoints documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspm999%2Fbook-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspm999%2Fbook-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspm999%2Fbook-api/lists"}