{"id":21074741,"url":"https://github.com/amacariola/rails6-marketapi","last_synced_at":"2025-09-02T17:18:10.710Z","repository":{"id":146306538,"uuid":"345735288","full_name":"amacariola/Rails6-MarketAPI","owner":"amacariola","description":"A pseudo Market Place API written in Rails","archived":false,"fork":false,"pushed_at":"2021-05-06T05:11:21.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-07T14:50:00.344Z","etag":null,"topics":["rails-api","rest-api"],"latest_commit_sha":null,"homepage":"https://market-api-rails6.herokuapp.com/api/v1","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/amacariola.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":"2021-03-08T17:16:37.000Z","updated_at":"2021-05-07T14:18:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ed75e24-fe27-4a8e-9311-bd67526c864e","html_url":"https://github.com/amacariola/Rails6-MarketAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amacariola/Rails6-MarketAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amacariola%2FRails6-MarketAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amacariola%2FRails6-MarketAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amacariola%2FRails6-MarketAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amacariola%2FRails6-MarketAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amacariola","download_url":"https://codeload.github.com/amacariola/Rails6-MarketAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amacariola%2FRails6-MarketAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273318814,"owners_count":25084277,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["rails-api","rest-api"],"created_at":"2024-11-19T19:17:32.336Z","updated_at":"2025-09-02T17:18:10.702Z","avatar_url":"https://github.com/amacariola.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Market Place API\nA Rails API made with json-serializer and jwt gem,  primarily intended for demo of basic CRUD concepts and pagination\n\n~~~~~~~\nRoutes\n\n       Prefix        Verb         URI Pattern                                                                                     \n api_v1_users        POST       /api/v1/users(.:format)                                                                         \n api_v1_user         GET       /api/v1/users/:id(.:format)                                                                       \n                     PATCH     /api/v1/users/:id(.:format)                                                                       \n                     PUT       /api/v1/users/:id(.:format)                                                                       \n                     DELETE    /api/v1/users/:id(.:format)                                                                       \n api_v1_orders       GET       /api/v1/orders(.:format)                                                                          \n                     POST      /api/v1/orders(.:format)                                                                         \n api_v1_order        GET       /api/v1/orders/:id(.:format)                                     \n api_v1_tokens       POST      /api/v1/tokens(.:format)                                                                          \n~~~~~~~~~\n\n\n\n## Setup\n\n~~~bash\n$ bundle install\n$ rake db:create \u0026\u0026 rake db:migrate\n~~~\n\n## Run the test with pride \n~~~bash\n$ rails test --pride\n~~~\n\n## Repopulate the database\n~~~bash\n$rake db:seed\n~~~~\n\n## Perform tests\n\n# Create a new user\n~~bash\n$ curl -X POST --data \"user[email]=new@email.com\" --data \"user[password]=test1234\" http://localhost:3000/api/v1/users\n\nResponse:\n{\"data\":{\"id\":\"10\",\"type\":\"user\",\"attributes\":{\"email\":\"new@email.com\"},\"relationships\":{\"products\":{\"data\":[]}}}} \n\n# Get Auth token\n\n$ curl -X POST --data \"user[email]=new@email.com\" --data \"user[password]=test1234\" http://localhost:3000/api/v1/tokens\n\n# Fetch all products \n\n$ curl --header \"Authorization = token here\" http://localhost:3000/api/v1/products\n\n## Requirements\n\n- Ruby 2.7+(Rails 6.1.x)\n- Sqlite3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famacariola%2Frails6-marketapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famacariola%2Frails6-marketapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famacariola%2Frails6-marketapi/lists"}