{"id":16053648,"url":"https://github.com/nejdetkadir/nodejs-book-api","last_synced_at":"2026-04-15T14:35:57.107Z","repository":{"id":132709475,"uuid":"301850041","full_name":"nejdetkadir/nodejs-book-api","owner":"nejdetkadir","description":"NodeJS simple books restful API (used MongoDB)","archived":false,"fork":false,"pushed_at":"2020-10-07T21:59:25.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T15:14:26.159Z","etag":null,"topics":["api","mongodb","mongoose","nodejs","rest-api","restful","restful-api","travis-ci"],"latest_commit_sha":null,"homepage":"https://nodejs-books-api.herokuapp.com","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/nejdetkadir.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":"2020-10-06T20:43:34.000Z","updated_at":"2020-10-09T02:00:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"754e8ef5-28a9-43ee-a6db-11efeb238e4b","html_url":"https://github.com/nejdetkadir/nodejs-book-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nejdetkadir%2Fnodejs-book-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nejdetkadir%2Fnodejs-book-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nejdetkadir%2Fnodejs-book-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nejdetkadir%2Fnodejs-book-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nejdetkadir","download_url":"https://codeload.github.com/nejdetkadir/nodejs-book-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247301528,"owners_count":20916527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","mongodb","mongoose","nodejs","rest-api","restful","restful-api","travis-ci"],"created_at":"2024-10-09T02:00:41.776Z","updated_at":"2026-04-15T14:35:52.080Z","avatar_url":"https://github.com/nejdetkadir.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://api.travis-ci.org/nejdetkadir/nodejs-book-api.svg)](https://api.travis-ci.org/nejdetkadir/nodejs-book-api)\r\n# Books\r\n| Route | HTTP Verb\t | Post Body\t | Description\t |\r\n| --- | --- | --- | --- |\r\n| /api/books | `GET` | Empty | List all books. |\r\n| /api/books | `POST` | {'name':'The Lord of the Rings', 'category':'Epic', 'publisher':'Metis Yayınları', 'year':1954, 'likes': 9157, 'author_id':\"id\"} | Create a new book. |\r\n| /api/books/:book_id | `GET` | Empty | Get single book. |\r\n| /api/books/:book_id | `PUT` | {'category':'History', 'year':2000} | Update a book with new info. |\r\n| /api/books/:book_id | `DELETE` | Empty | Delete a book. |\r\n| /api/books/top/:top_id | `GET` | Empty | Get the top books with your limit. |\r\n| /api/books/year/:start_year/:end_year | `GET` | Empty | Books between two dates. |\r\n\r\n# Authors\r\n| Route | HTTP Verb\t | Post Body\t | Description\t |\r\n| --- | --- | --- | --- |\r\n| /api/authors | `GET` | Empty | List all authors and theirs books. |\r\n| /api/authors | `POST` | {'name': 'J. R. R.', 'surname':'Tolkien', 'bio':'Lorem ipsum dolor sit amet'} | Create a new author. |\r\n| /api/authors/:author_id | `GET` | Empty | Get single author and their books. |\r\n| /api/authors/:author_id | `PUT` | {'bio': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit'} | Update a author with new info. |\r\n| /api/authors/:author_id | `DELETE` | Empty | Delete a author. |\r\n\r\n# Index\r\n| Route | HTTP Verb\t | POST Body\t | Description\t |\r\n| --- | --- | --- | --- |\r\n| /register | `POST` | { username: 'loremipsum', password:'1234' } | Create a new user. |\r\n| /authenticate | `POST` | { username: 'loremipsum', password:'1234' } | Generate a token. |\r\n\r\n# Demo\r\n[Live demo on Heroku](https://nodejs-books-api.herokuapp.com/)\r\n\r\n# LICENSE\r\nThis Application is licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnejdetkadir%2Fnodejs-book-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnejdetkadir%2Fnodejs-book-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnejdetkadir%2Fnodejs-book-api/lists"}