{"id":23488432,"url":"https://github.com/onesy-me/apis","last_synced_at":"2026-04-11T03:04:27.660Z","repository":{"id":57097031,"uuid":"455232122","full_name":"onesy-me/apis","owner":"onesy-me","description":"API ","archived":false,"fork":false,"pushed_at":"2025-04-08T18:09:18.000Z","size":426,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T11:07:46.421Z","etag":null,"topics":["amaui","api","back-end","backend","decorators","express","expressjs","js","library","node","nodejs","typescript","utils","web"],"latest_commit_sha":null,"homepage":"https://docs.onesy.me/library/api","language":"TypeScript","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/onesy-me.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":"2022-02-03T16:04:03.000Z","updated_at":"2025-04-08T18:09:22.000Z","dependencies_parsed_at":"2024-03-29T23:27:19.424Z","dependency_job_id":"07046f53-0db6-4339-9b1a-c3bddaddec47","html_url":"https://github.com/onesy-me/apis","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"12b932e91adff0442d59341a74e6cf8e6b5f377d"},"previous_names":["onesy-me/amaui-api","amaui-org/amaui-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fapis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fapis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fapis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onesy-me%2Fapis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onesy-me","download_url":"https://codeload.github.com/onesy-me/apis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248868769,"owners_count":21174758,"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":["amaui","api","back-end","backend","decorators","express","expressjs","js","library","node","nodejs","typescript","utils","web"],"created_at":"2024-12-24T23:11:26.971Z","updated_at":"2025-12-30T20:21:23.252Z","avatar_url":"https://github.com/onesy-me.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003c/br\u003e\n\u003c/br\u003e\n\n\u003cp align='center'\u003e\n  \u003ca target='_blank' rel='noopener noreferrer' href='#'\u003e\n    \u003cimg width='auto' height='84' src='https://raw.githubusercontent.com/onesy-me/onesy/refs/heads/main/utils/images/logo.png' alt='onesy logo' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align='center'\u003eonesy APIs\u003c/h1\u003e\n\n\u003ch3 align='center'\u003e\n  \u003csub\u003eMIT license\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eProduction ready\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003e100% test cov\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n  \u003csub\u003eNodejs\u003c/sub\u003e\n\u003c/h3\u003e\n\n\u003cp align='center'\u003e\n    \u003csub\u003eVery simple code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eModern code\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eJunior friendly\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eTypescript\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003c/sub\u003e\n    \u003csub\u003eMade with :yellow_heart:\u003c/sub\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n### Add\n\n```sh\nyarn add @onesy/api\n```\n\n### Use\n\n```javascript\n  import express from 'express';\n  import { Route, Method, IRouteClassInstance, Routes } from '@onesy/api';\n\n  class Base implements IRouteClassInstance {\n\n    public response(req: express.Request, response: express.Response, options: { method: 'json' | 'send', type: 'application/json', }) { return ...; }\n\n    public error(req: express.Request, error: Error) { return ...; }\n\n  }\n\n  // Add decorator to a class representing a route\n  @Route(\n    '/a',\n    method\n  )\n  class A extends Base {\n\n    @Method(\n      'get',\n      '/a',\n      method1\n    )\n    public a() { }\n\n  }\n\n  // Create an express app\n  const app = express();\n\n  // Register all classes as app routes\n  Routes([A], app);\n\n  // app routes:\n  // GET /a/a, middlewares: method, method1\n\n  // etc.\n```\n\n### Dev\n\nInstall\n\n```sh\nyarn\n```\n\nTest\n\n```sh\nyarn test\n```\n\n### Prod\n\nBuild\n\n```sh\nyarn build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Fapis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonesy-me%2Fapis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonesy-me%2Fapis/lists"}