{"id":17681085,"url":"https://github.com/drujensen/jsonapi","last_synced_at":"2025-03-30T19:13:57.402Z","repository":{"id":146155256,"uuid":"54764736","full_name":"drujensen/jsonapi","owner":"drujensen","description":"JSONAPI support in Crystal","archived":false,"fork":false,"pushed_at":"2016-04-04T06:20:14.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T21:39:17.175Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drujensen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-03-26T05:37:41.000Z","updated_at":"2016-05-25T20:50:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"eaab078b-0909-47bc-a2b9-5cb3f54f1174","html_url":"https://github.com/drujensen/jsonapi","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/drujensen%2Fjsonapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drujensen%2Fjsonapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drujensen%2Fjsonapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drujensen%2Fjsonapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drujensen","download_url":"https://codeload.github.com/drujensen/jsonapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365650,"owners_count":20765548,"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-10-24T09:10:10.784Z","updated_at":"2025-03-30T19:13:57.372Z","avatar_url":"https://github.com/drujensen.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonapi\n\nProvides the ability to map fields in an object and call `to_jsonapi`.  This\nwill allow support for jsonapi.\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  jsonapi:\n    github: drujensen/jsonapi\n    branch: master\n```\n\n## Usage\n\ninclude JSONAPI in a class.  The class needs to have an @id defined.\n\nNext, create a `jsonapi_mapping` for the fields in your object.\n\n```crystal\nrequire \"jsonapi\"\n\nclass Test\n  include JSONAPI\n  def initialize(@id = 0, @name = \"\", @body = \"\")\n  end\n\n  jsonapi_mapping({\n    name: String,\n    body: String\n  })\n  \nend\n\n```\n\n## Development\n\nThis is a Work In Progress.\n\nRoadMap:\n- support links\n- relationships\n\n## Contributing\n\n1. Fork it ( https://github.com/[your-github-name]/jsonapi/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [drujensen](https://github.com/drujensen) Dru Jensen - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrujensen%2Fjsonapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrujensen%2Fjsonapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrujensen%2Fjsonapi/lists"}