{"id":20940673,"url":"https://github.com/ianmurrays/rails_api_base","last_synced_at":"2025-06-24T23:10:16.323Z","repository":{"id":17840318,"uuid":"20752293","full_name":"ianmurrays/rails_api_base","owner":"ianmurrays","description":"This is a personal Rails 4 base project for APIs. Includes versioning and simple authentication.","archived":false,"fork":false,"pushed_at":"2014-06-12T03:03:49.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T00:38:55.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ianmurrays.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}},"created_at":"2014-06-12T02:46:42.000Z","updated_at":"2014-06-12T03:03:48.000Z","dependencies_parsed_at":"2022-09-11T15:20:08.368Z","dependency_job_id":null,"html_url":"https://github.com/ianmurrays/rails_api_base","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ianmurrays/rails_api_base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Frails_api_base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Frails_api_base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Frails_api_base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Frails_api_base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianmurrays","download_url":"https://codeload.github.com/ianmurrays/rails_api_base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2Frails_api_base/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261771193,"owners_count":23207223,"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":[],"created_at":"2024-11-18T23:11:23.321Z","updated_at":"2025-06-24T23:10:16.302Z","avatar_url":"https://github.com/ianmurrays.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails API Base\n\nThis is a simple base for a Rails API server. It uses [versionist](https://github.com/bploetz/versionist) to version the API, and includes a simple User model with authentication.\n\n## How does authentication work?\n\nThe user model `has_many` authentication tokens that have (or don't have) expiration dates. Each time a client wants an authentication token, they have to POST to /v1/authenticate:\n\n    $ curl -X POST -d '{\"email\": \"email@example.org\", \"password\": \"123\"}' -H \"Content-Type: application/json\" http://localhost:3000/v1/authenticate\n    \n    {\"token\":\"bfe6e14b-5bac-4cb9-8f92-436b475221e9\",\"expires_at\":\"2014-06-13T02:25:28.753Z\"}\n\nIn order to access protected resources, clients have to send a header with a valid token:\n\n    $ curl -X GET -H \"Authorization: bfe6e14b-5bac-4cb9-8f92-436b475221e9\" -H \"Content-Type: application/json\" -i http://localhost:3000/v1/protected/path\n\nThat's it!\n\n## Want to contribute?\n\n  1. Fork\n  2. Create a branch\n  3. Create a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmurrays%2Frails_api_base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianmurrays%2Frails_api_base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmurrays%2Frails_api_base/lists"}