{"id":18729829,"url":"https://github.com/shofiq0023/infocave-blogs","last_synced_at":"2026-04-13T12:01:51.411Z","repository":{"id":83625798,"uuid":"478504127","full_name":"shofiq0023/infoCave-blogs","owner":"shofiq0023","description":"Info cave backend. Blogs crud operation and user related operations are done here. User list fetch, login system etc","archived":false,"fork":false,"pushed_at":"2022-04-10T08:57:52.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T12:59:20.525Z","etag":null,"topics":["cache","heroku","java","postgresql","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/shofiq0023.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":"2022-04-06T10:07:27.000Z","updated_at":"2023-03-04T03:06:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"18ab7d17-bf7d-47f0-84fe-59027dfe48b0","html_url":"https://github.com/shofiq0023/infoCave-blogs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shofiq0023/infoCave-blogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shofiq0023%2FinfoCave-blogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shofiq0023%2FinfoCave-blogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shofiq0023%2FinfoCave-blogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shofiq0023%2FinfoCave-blogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shofiq0023","download_url":"https://codeload.github.com/shofiq0023/infoCave-blogs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shofiq0023%2FinfoCave-blogs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31751705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"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":["cache","heroku","java","postgresql","rest-api","spring-boot"],"created_at":"2024-11-07T14:29:06.639Z","updated_at":"2026-04-13T12:01:51.377Z","avatar_url":"https://github.com/shofiq0023.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Info-Cave Blogs\n\nBlogs operations are done in this project\n\n## Endpoints:\n\n### **For Blogs:**\n\nMain endpoint: **/api/blogs**\n\nREST api link: [In heroku blogs](https://infocave.herokuapp.com/api/blogs)\n\nVariables:\n\n-   **/get/all** : fetches all the blogs from DB.\n\n-   **/get/all/author/{authorId}** : fetches all blogs by author id.\n\n-   **/get/{blogId}** : gets a single blog by blog id.\n\n-   **/add** : adds a new blog to the DB.\n\n    Header:\n\n    ```json\n    {\n    \t\"Content-Type\": \"application/json\"\n    }\n    ```\n\n    Body:\n\n    ```json\n    {\n    \t\"title\": \"The Outsider\",\n    \t\"authorId\": 2154,\n    \t\"snippet\": \"Alien invasion on earth\",\n    \t\"detail\": \"this is where the actual blogs is written\"\n    }\n    ```\n\n-   **/update/{blogId}** : updates a blog by blog id. **Request body same as `/add`**\n\n-   **/delete/{blogId}** : deletes a blog by blog id.\n\n---\n\n### **For User**:\n\nMain endpoint: **/api/users/**\n\nREST api link: [In heroku users](https://infocave.herokuapp.com/api/users)\n\nVariables:\n\n-   **/get/all** : gets all user detail from DB.\n\n-   **/get/{userId}** : gets a single user detail using user id from DB.\n\n-   **/add** : adds a new user to DB.\n\n    Header:\n\n    ```json\n    {\n    \t\"Content-Type\": \"application/json\"\n    }\n    ```\n\n    Body:\n\n    ```json\n    {\n    \t\"name\": \"John Doe\",\n    \t\"authorName\": \"john\",\n    \t\"email\": \"john.doe_002@gmail.com\",\n    \t\"password\": \"johndoe123\"\n    }\n    ```\n\n    **Password will be encoded in the backend**\n\n-   **/delete/{userId}** : deletes a user using user id. Returns a message.\n\n-   **/login** : login with email and password. Returns boolean if credentials matches with database.\n\n    Header:\n\n    ```json\n    {\n    \t\"Content-Type\": \"application/json\"\n    }\n    ```\n\n    Body:\n\n    ```json\n    {\n    \t\"email\": \"john.doe_002@gmail.com\",\n    \t\"password\": \"johndoe123\"\n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshofiq0023%2Finfocave-blogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshofiq0023%2Finfocave-blogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshofiq0023%2Finfocave-blogs/lists"}