{"id":27406255,"url":"https://github.com/jesusantguerrero/adonisjs-querify","last_synced_at":"2026-06-23T21:31:47.481Z","repository":{"id":84069927,"uuid":"200543586","full_name":"jesusantguerrero/adonisjs-querify","owner":"jesusantguerrero","description":"provide controller, model to handle basic crud operations in Adonis.js","archived":false,"fork":false,"pushed_at":"2019-12-17T23:02:06.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T06:31:20.702Z","etag":null,"topics":["adonisjs-framework","crud-functionality","javascript","provider"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jesusantguerrero.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,"zenodo":null}},"created_at":"2019-08-04T21:31:20.000Z","updated_at":"2020-01-22T08:42:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"731c0063-cc06-470f-9ae3-e5e4aee27930","html_url":"https://github.com/jesusantguerrero/adonisjs-querify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jesusantguerrero/adonisjs-querify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusantguerrero%2Fadonisjs-querify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusantguerrero%2Fadonisjs-querify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusantguerrero%2Fadonisjs-querify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusantguerrero%2Fadonisjs-querify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jesusantguerrero","download_url":"https://codeload.github.com/jesusantguerrero/adonisjs-querify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jesusantguerrero%2Fadonisjs-querify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34708272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":["adonisjs-framework","crud-functionality","javascript","provider"],"created_at":"2025-04-14T06:25:22.031Z","updated_at":"2026-06-23T21:31:47.475Z","avatar_url":"https://github.com/jesusantguerrero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adonisjs-querify\r\n\r\nProvide controller and model to handle basic crud operations and enriched api get sql search from query string in url in [Adonis.js](https://adonisjs.com/)\r\n\r\n## Installation\r\nMake sure to install it using npm or yarn.\r\n\r\n```\r\n# npm\r\nnpm i adonisjs-querify\r\n\r\n# yarn\r\nyarn add adonisjs-queryfy\r\n```\r\n\r\n## How to use\r\nYou should register the installed package as a provider in  `start/app.js` file\r\n\r\n```\r\nconst providers = [\r\n ...\r\n  'adonisjs-querify/providers/Provider'\r\n  ...\r\n]\r\n```\r\n\r\nThen you can use the available components to extend your models and controllers\r\n\r\n### Models\r\n\r\n```\r\nconst Model = use('Freesgen/Adonis/BaseModel')\r\nconst Database = use('Database')\r\n\r\nclass TimeEntry extends Model {\r\n // your stuff here ...\r\n}\r\n```\r\n### Controllers\r\n\r\n```\r\n'use strict'\r\nconst BaseController = use('Freesgen/BaseController');\r\nconst TimeEntry = use('App/Models/TimeEntry')\r\n\r\nclass TimeEntryController extends BaseController{\r\n\r\n  constructor() {\r\n    super(TimeEntry)\r\n  }\r\n```\r\n\r\n### Hit your endpoints\r\n\r\n`/api/v1/time-entries?relationships=labels\u0026sort=-start\u0026limit=1`\r\n\r\nIn this case I am calling my endpioint with relationship and limit parameters. and you get the resource.\r\n\r\n```\r\n  {\r\n    \"id\": 34,\r\n    \"id_company\": 3,\r\n    \"user_id\": 3,\r\n    \"milestone_id\": null,\r\n    \"label_ids\": [\r\n      3\r\n    ],\r\n    \"description\": \"Otra cosa mas\",\r\n    \"billable\": 1,\r\n    \"start\": \"2019-08-04T01:41:41.000Z\",\r\n    \"end\": \"2019-08-04T01:41:53.000Z\",\r\n    \"status\": 1,\r\n    \"duration\": null,\r\n    \"created_at\": \"2019-08-03 21:41:41\",\r\n    \"updated_at\": \"2019-08-03 21:41:53\",\r\n    \"labels\": [\r\n      {\r\n        \"id\": 3,\r\n        \"id_company\": 3,\r\n        \"title\": \"Otra cosa\",\r\n        \"description\": \"Otra cosa\",\r\n        \"color\": \"#f6f6f6\",\r\n        \"color_format\": \"hex\",\r\n        \"created_at\": \"2019-08-03 18:34:34\",\r\n        \"updated_at\": \"2019-08-03 18:34:34\",\r\n        \"pivot\": {\r\n          \"label_id\": 3,\r\n          \"time_entry_id\": 34\r\n        }\r\n      }\r\n    ]\r\n  }\r\n```\r\n\r\n## Queryfy calls params\r\n### filter\r\nfilter[]=value\u0026filter[field]=value\r\n\r\n#### like\r\nfilter[]=%value%\r\n#### greater than\r\nfilter[field]=\u003evalue\u0026filter\r\n#### minor than\r\nfilter[field]=\u003cvalue\u0026filter\r\n \r\n### Sort\r\n`{url}?sort=field` for ASC, `{url}?sort=field` for DESC\r\n\r\n###\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesusantguerrero%2Fadonisjs-querify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjesusantguerrero%2Fadonisjs-querify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjesusantguerrero%2Fadonisjs-querify/lists"}