{"id":23003938,"url":"https://github.com/emyasnikov/lua-resty-set","last_synced_at":"2025-04-02T14:25:28.945Z","repository":{"id":178014974,"uuid":"201422188","full_name":"emyasnikov/lua-resty-set","owner":"emyasnikov","description":"OpenResty framework intended for microservices endpoints.","archived":false,"fork":false,"pushed_at":"2020-10-09T22:24:28.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T05:27:59.590Z","etag":null,"topics":["events","lua","luajit","microservices","mysql","nginx","openresty","redis","routing"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/emyasnikov.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":"2019-08-09T08:08:38.000Z","updated_at":"2024-08-19T13:56:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"6104d2e7-9428-4c49-bc09-62cd08fdc8b1","html_url":"https://github.com/emyasnikov/lua-resty-set","commit_stats":null,"previous_names":["emyasnikov/lua-resty-set"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emyasnikov%2Flua-resty-set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emyasnikov%2Flua-resty-set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emyasnikov%2Flua-resty-set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emyasnikov%2Flua-resty-set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emyasnikov","download_url":"https://codeload.github.com/emyasnikov/lua-resty-set/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246830268,"owners_count":20840793,"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":["events","lua","luajit","microservices","mysql","nginx","openresty","redis","routing"],"created_at":"2024-12-15T07:16:24.075Z","updated_at":"2025-04-02T14:25:28.940Z","avatar_url":"https://github.com/emyasnikov.png","language":"Lua","readme":"# lua-resty-set\n\n**lua-resty-set** is a library for OpenResty supporting route matching, events, tokens, and some handy database query operations.\n\n## CRUD\n\n**lua-resty-set** supports predefined CRUD endpoints, which can be used to shorted code.\n\n### Create\n\n```lua\nexample:create('example', function(self) end)\n```\n\nThis matches `POST /example` and reads data to `self.data`.\n\n### Read\n\n```lua\nexample:read('example', function(self, id) end)\n```\n\nThis matches `GET /example/1`.\n\n### Update\n\n```lua\nexample:update('example', function(self, id) end)\n```\n\nThis matches `PATCH /example/1` and reads data to `self.data`.\n\n### Delete\n\n```lua\nexample:delete('example', function(self, id) end)\n```\n\nAnd this matches `DELETE /example/1`.\n\n## Routes\n\n```lua\nexample:route('GET', '/example/(%d+)', function(self, id) end)\n```\n\nRoute function takes method and path with variables in it, like the numerical ID in this case.\n\n## See Also\n\n[lua-resty-route](https://github.com/bungle/lua-resty-route) — Routing library which was inspiration for this project\n\n## Licence\n\n**lua-resty-set** uses MIT License.\n\n```\nCopyright (c) 2019 - 2020, Evgenij Myasnikov\nAll rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femyasnikov%2Flua-resty-set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femyasnikov%2Flua-resty-set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femyasnikov%2Flua-resty-set/lists"}