{"id":16078964,"url":"https://github.com/roman-developer/api-dog","last_synced_at":"2025-04-05T10:43:47.855Z","repository":{"id":176504981,"uuid":"658832916","full_name":"roman-developer/api-dog","owner":"roman-developer","description":"Public API to get dogs names and images","archived":false,"fork":false,"pushed_at":"2023-06-26T15:28:31.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T21:38:51.343Z","etag":null,"topics":["activejob","api","faraday","rails-api","rails7","rake-task","ruby-on-rails","sidekiq","swagger"],"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/roman-developer.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-06-26T15:24:19.000Z","updated_at":"2023-06-28T05:56:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"99a66462-d4a0-434e-8ae3-820c161e501e","html_url":"https://github.com/roman-developer/api-dog","commit_stats":null,"previous_names":["roman-developer/api-dog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fapi-dog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fapi-dog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fapi-dog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roman-developer%2Fapi-dog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roman-developer","download_url":"https://codeload.github.com/roman-developer/api-dog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325648,"owners_count":20920713,"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":["activejob","api","faraday","rails-api","rails7","rake-task","ruby-on-rails","sidekiq","swagger"],"created_at":"2024-10-09T10:23:28.767Z","updated_at":"2025-04-05T10:43:47.821Z","avatar_url":"https://github.com/roman-developer.png","language":"Ruby","readme":"# README\n\n## API Dogs\n\n\u003cb\u003eApi Dogs\u003c/b\u003e is an example project of API mode in Rails.\n\n## Motivation\n\nI have been motivated to build this application because I wanted to build an example project in Ruby on Rails API mode. This project is part of a Code Challenge where we have had the mission to import some data (dogs `images` and `names`) in our local database from an external Dogs API (https://dog.ceo/api/breeds/image/random) and create an endpoint to display the information. The import has been processed in a scheduled task that runs every day.\n\n## Tech/framework used\n\nBuilt with [Ruby on Rails](https://rubyonrails.org/).\n- Ruby version: 3.1.2p20\n- Rails version: 7.0.3\n\nDatabase:\n- Sqlite\n\nFrontend:\n- No FE, data exposed in JSON format.\n\n## Application screenshots\n\n- Example of successfull requests:\n\n[![Captura-de-Pantalla-2023-06-26-a-las-13-03-32.png](https://i.postimg.cc/4dbJwNPy/Captura-de-Pantalla-2023-06-26-a-las-13-03-32.png)](https://postimg.cc/jw20STGY)\n\n[![Captura-de-Pantalla-2023-06-26-a-las-17-20-37.png](https://i.postimg.cc/VkwtVh9V/Captura-de-Pantalla-2023-06-26-a-las-17-20-37.png)](https://postimg.cc/GHM9Bq5F)\n\n\n## Installation\n\n1. Install [Ruby on Rails](https://edgeguides.rubyonrails.org/getting_started.html#creating-a-new-rails-project-installing-rails)\n2. Clone this repository.\n3. Database set up:\n- Create the database `rails db:create`\n- Run migrations `rails db:migrate`\n- Run seeds `rails db:seed`\n\n## Test\n\n- `rspec spec/`\n\n## Run\n\n- Execute: `rails server`\n- Access to http://localhost:3000/api-docs/index.html to see swagger information API\n- Example of request:\n```\ncurl -X 'GET' \\\n  'http://localhost:3000/api/v1/dogs' \\\n  -H 'accept: */*'\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman-developer%2Fapi-dog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froman-developer%2Fapi-dog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froman-developer%2Fapi-dog/lists"}