{"id":15534359,"url":"https://github.com/stephlaf/pokemon-api","last_synced_at":"2025-10-15T19:18:34.021Z","repository":{"id":154965865,"uuid":"630268915","full_name":"stephlaf/pokemon-api","owner":"stephlaf","description":"Rails 7 API for CRUD actions on a list of Pokemons","archived":false,"fork":false,"pushed_at":"2023-05-01T18:32:19.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T01:39:06.917Z","etag":null,"topics":["csv-parser","jbuilder","pagination","postgresql-database","rails-api"],"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/stephlaf.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-04-20T02:53:24.000Z","updated_at":"2023-04-20T14:08:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"6652a395-3ce2-4190-8f66-d974d8377730","html_url":"https://github.com/stephlaf/pokemon-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/stephlaf%2Fpokemon-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephlaf%2Fpokemon-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephlaf%2Fpokemon-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephlaf%2Fpokemon-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephlaf","download_url":"https://codeload.github.com/stephlaf/pokemon-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241104494,"owners_count":19910452,"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":["csv-parser","jbuilder","pagination","postgresql-database","rails-api"],"created_at":"2024-10-02T11:42:04.004Z","updated_at":"2025-10-15T19:18:28.971Z","avatar_url":"https://github.com/stephlaf.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n### Rails 7 API providing access to the CRUD actions on a Postgresql database of Pokemons\n\n### Usage:\n- Clone the repo\n```\ngit clone git@github.com:stephlaf/pokemon-api.git\n```\n- Install the gems\n```\nbundle install\n```\n- Create the DB \u0026 seed\n```\nrails db:create db:migrate db:seed\n```\n- Launch a server with `rails s`\n\n### Endpoints:\n- READ ALL `GET`\n```\nhttp://localhost:3000/api/v1/pokemons\n```\n- READ ALL, paginated `GET`\n```\nhttp://localhost:3000/api/v1/pokemons?per_page=50\u0026page=2\n```\n- READ ONE `GET`\n```\nhttp://localhost:3000/api/v1/pokemons/:id\n```\n- CREATE `POST`\n```\nhttp://localhost:3000/api/v1/pokemons\n```\n\nYou will need to specify\n- UPDATE `PATCH`\n```\nhttp://localhost:3000/api/v1/pokemons/:id\n```\n- DELETE `DELETE`\n```\nhttp://localhost:3000/api/v1/pokemons/:id\n```\n\n### Notes:\n- For the `CREATE` and the `UPDATE` actions, you must provide a Hash through the `body` of the request, with these specific keys:\n```ruby\n{\n\t\"po_id\": Integer,\n\t\"name\": String,\n\t\"type_1\": String,\n\t\"type_2\": String,\n\t\"total\": Integer,\n\t\"hp\": Integer,\n\t\"attack\": Integer,\n\t\"defense\": Integer,\n\t\"sp_atk\": Integer,\n\t\"sp_def\": Integer,\n\t\"speed\": Integer,\n\t\"generation\": Integer,\n\t\"legendary\": Boolean\n}\n```\n- The `will_paginate` and `api-pagination` gems are used for the pagination\n- The `jbuilder` gem is used to generate the `json` views\n\n- There are unit tests you may run with `rails test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephlaf%2Fpokemon-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephlaf%2Fpokemon-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephlaf%2Fpokemon-api/lists"}