{"id":18268682,"url":"https://github.com/escape-dev/devise-jwt","last_synced_at":"2025-04-09T02:47:35.078Z","repository":{"id":258203476,"uuid":"871073145","full_name":"escape-dev/devise-jwt","owner":"escape-dev","description":"Practice devise jwt ","archived":false,"fork":false,"pushed_at":"2024-12-17T08:00:16.000Z","size":77,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T21:27:11.181Z","etag":null,"topics":["devise-jwt","kaminari","pagination","rack-attack"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/escape-dev.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":"2024-10-11T08:08:56.000Z","updated_at":"2024-12-17T08:00:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ebb923a-2245-48b8-912a-08d5eeaee896","html_url":"https://github.com/escape-dev/devise-jwt","commit_stats":null,"previous_names":["escape-dev/devise-jwt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escape-dev%2Fdevise-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escape-dev%2Fdevise-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escape-dev%2Fdevise-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escape-dev%2Fdevise-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/escape-dev","download_url":"https://codeload.github.com/escape-dev/devise-jwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247968239,"owners_count":21025797,"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":["devise-jwt","kaminari","pagination","rack-attack"],"created_at":"2024-11-05T11:32:58.596Z","updated_at":"2025-04-09T02:47:35.062Z","avatar_url":"https://github.com/escape-dev.png","language":"Ruby","readme":"# Explore Rails API\n\n1. Devise JWT\n2. Kaminari Pagination\n3. Rack Attack (rails rate limiter)\n\n## Database Design\n![devise-jwt](https://github.com/user-attachments/assets/7d086d98-f409-4345-bd60-4770ce1ce41c)\n\n## Endpoint\n### Sign Up\n``` POST api/v1/signup ```\n```\nbody = {\n    \"user\": {\n        \"email\": \"example@mail.com\",\n        \"role\": 0,\n        \"password\": \"password\"\n    }\n}\n```\n\n### Sign In\n``` POST api/v1/signin ```\n```\nbody = {\n    \"user\": {\n        \"email\": \"example@mail.com\",\n        \"password\": \"password\"\n    }\n}\n```\n\n### Books\n- create\n  ``` POST api/v1/books ```\n  ```\n  header = 'Authorization: ••••••'\n  body = {\n    \"book\": {\n        \"title\": \"Solo Leveling\",\n        \"description\": \"Wage War\"\n    }\n  }\n  ```\n- update\n  ``` PUT api/v1/books/:id ```\n  ```\n  header = 'Authorization: ••••••'\n  body = {\n    \"book\": {\n        \"title\": \"Solo Leveling: Origin\",\n        \"description\": \"Wage War\"\n    }\n  }\n  ```\n- get all\n  ``` GET api/v1/books ```\n  ```\n  header = 'Authorization: ••••••'\n  ```\n- get by id\n  ``` GET api/v1/books/:id ```\n  ```\n  header = 'Authorization: ••••••'\n  ```\n- delete\n  ``` DELETE api/v1/books/:id ```\n  ```\n  header = 'Authorization: ••••••'\n  ```\n\n\n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescape-dev%2Fdevise-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescape-dev%2Fdevise-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescape-dev%2Fdevise-jwt/lists"}