{"_id":"@4geit/swg-todo-model","_rev":"6-425cd4672cd6465e8c3f243b2b4da756","name":"@4geit/swg-todo-model","description":"model","dist-tags":{"latest":"1.31.2"},"versions":{"1.30.1":{"name":"@4geit/swg-todo-model","version":"1.30.1","description":"model","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-todo-model#README","keywords":[],"author":{"name":"Tolga Celik","email":"tolga.celik@hotmail.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.x","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.x","@4geit/swg-dereference-swagger-helper":"^1.x","@4geit/swg-destructuring-parameters-helper":"^1.x","@4geit/swg-get-user-with-api-token-helper":"^1.x","@4geit/swg-paginate-helper":"^1.x","@4geit/swg-use-db-helper":"^1.x"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-todo-model@1.30.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-YnR9zbcuYHyLOzpj5mWi2DVgBYgCZhISR9bfDxPFv8M591lGXXtsRqu/Mbs4+ElDZj6wEy/IC8GQHparll9HNQ==","shasum":"c895438bcb56c420c65d4aebda5caf73ff12323f","tarball":"https://registry.npmjs.org/@4geit/swg-todo-model/-/swg-todo-model-1.30.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAR5Sv1lW4z5iwgUx83gTgPwsm4qPonkObonm5ETcAlAAiEAj7BkpwciSu4nTHUiMrmHaPWob1CkOR6jTDlXDsTWDm0="}]},"maintainers":[{"name":"canercandan","email":"caner@candan.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-todo-model-1.30.1.tgz_1507823691722_0.4814166724681854"}},"1.30.2":{"name":"@4geit/swg-todo-model","version":"1.30.2","description":"model","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-todo-model#README","keywords":[],"author":{"name":"Tolga Celik","email":"tolga.celik@hotmail.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.x","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.x","@4geit/swg-dereference-swagger-helper":"^1.x","@4geit/swg-destructuring-parameters-helper":"^1.x","@4geit/swg-get-user-with-api-token-helper":"^1.x","@4geit/swg-paginate-helper":"^1.x","@4geit/swg-use-db-helper":"^1.x"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-todo-model@1.30.2","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-cuVPVQ1hry1ggBJBSdKfeiwGff83kPlfgAgC9lHS+spzjf/bz1OdMk0li60vrJDTCacP5bBr3s5cchqe0Kol4w==","shasum":"30d5a6b414a11821f703f0f2b5291fe019d0a677","tarball":"https://registry.npmjs.org/@4geit/swg-todo-model/-/swg-todo-model-1.30.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8uPJKq4t+YHwr76zIejPgvjJF+VglYdB5ViMNWJNI/wIhAJOlGEavNIeQZPlbpDhXNOEXURFFjEiZOC2L3n6GbkxC"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-todo-model-1.30.2.tgz_1507824313395_0.6578058630693704"}},"1.31.0":{"name":"@4geit/swg-todo-model","version":"1.31.0","description":"model","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-todo-model#README","keywords":[],"author":{"name":"Tolga Celik","email":"tolga.celik@hotmail.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.31.0","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.31.0","@4geit/swg-dereference-swagger-helper":"^1.31.0","@4geit/swg-destructuring-parameters-helper":"^1.31.0","@4geit/swg-get-user-with-api-token-helper":"^1.x","@4geit/swg-paginate-helper":"^1.x","@4geit/swg-use-db-helper":"^1.x"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-todo-model@1.31.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-v55477UYEnV6Vr2lKnQdHVx59CeinV1SFsw3InTN4UNy1JyJRZyEwrfjiUM/ENrWidrhDJq1Nd0ozdLYEsCUaA==","shasum":"db32a72f52fd312ec577d172a68c115c88897639","tarball":"https://registry.npmjs.org/@4geit/swg-todo-model/-/swg-todo-model-1.31.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUR59K27LnaoE2bnwSFe1ewgHE0wL82Zduciz0Zxg1mwIhAIrzMSKaXwlcN/1AJopA7gyfNiqURzZcBA/rwJH3bdQS"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-todo-model-1.31.0.tgz_1508703126073_0.5461033477913588"}},"1.31.1":{"name":"@4geit/swg-todo-model","version":"1.31.1","description":"model","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-todo-model#README","keywords":[],"author":{"name":"Tolga Celik","email":"tolga.celik@hotmail.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.31.1","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.31.0","@4geit/swg-dereference-swagger-helper":"^1.31.0","@4geit/swg-destructuring-parameters-helper":"^1.31.0","@4geit/swg-get-user-with-api-token-helper":"^1.x","@4geit/swg-paginate-helper":"^1.x","@4geit/swg-use-db-helper":"^1.x"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-todo-model@1.31.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-cPRGIEDFAg9kn3UXumoQU4sKv9Mrk1Duk+ydxJmwqPLHyEsWAfIT3AFXgan330uqm/6H5ZOr3jSAgj/TCqjHvA==","shasum":"67a06e42819ebc261e8c9cbb80043129e03b88f1","tarball":"https://registry.npmjs.org/@4geit/swg-todo-model/-/swg-todo-model-1.31.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNtZKGeJL4SYyuJvl4BJ/S1FxctYMd+HOlFBAqDPKfXQIhAP9n1Cgv9ggKY2KwVPHsBLLAs8Ucdxnpx3vyv4W1Z0DO"}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-todo-model-1.31.1.tgz_1508895018016_0.3272012488450855"}},"1.31.2":{"name":"@4geit/swg-todo-model","version":"1.31.2","description":"model","main":"index.js","bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-todo-model#README","keywords":[],"author":{"name":"Tolga Celik","email":"tolga.celik@hotmail.fr"},"license":"MIT","dependencies":{"@4geit/swg-account-model":"^1.31.2","@4geit/swg-account-security-model":"^1.x","@4geit/swg-check-availability-helper":"^1.31.0","@4geit/swg-dereference-swagger-helper":"^1.31.0","@4geit/swg-destructuring-parameters-helper":"^1.31.0","@4geit/swg-get-user-with-api-token-helper":"^1.x","@4geit/swg-paginate-helper":"^1.x","@4geit/swg-use-db-helper":"^1.x"},"publishConfig":{"access":"public"},"_id":"@4geit/swg-todo-model@1.31.2","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"canercandan","email":"caner@candan.fr"},"dist":{"integrity":"sha512-W8laVemh4kLbgjmI8eveZ95OZ/sjh9Di7kF2nQ+WylSezHWYuogxrJgj61Hc6lCNHKNw+5QiYrkb0Vjc/Yf3hA==","shasum":"507cdb8c9b8fcfe1fdeddefc6106d56216e60f10","tarball":"https://registry.npmjs.org/@4geit/swg-todo-model/-/swg-todo-model-1.31.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvpJFlfXcKbOSLPll61G9PvbfgSeYmWeQuTCR0M97AoAiEAt2nE4R/NsW0VHebrw6H9yBBy0URCHdKvKDXuFt1hs7s="}]},"maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swg-todo-model-1.31.2.tgz_1510671122118_0.7642966469284147"}}},"readme":"# @4geit/swg-todo-model [![npm version](//badge.fury.io/js/@4geit%2Fswg-todo-model.svg)](//badge.fury.io/js/@4geit%2Fswg-todo-model)\n\n---\n\nmodel\n\n## Installation\n\n1. A recommended way to install ***@4geit/swg-todo-model*** is through [npm](//www.npmjs.com/search?q=@4geit/swg-todo-model) package manager using the following command:\n\n```bash\nnpm i @4geit/swg-todo-model --save\n```\n\nOr use `yarn` using the following command:\n\n```bash\nyarn add @4geit/swg-todo-model\n```\n\n2. In your swagger file, you need to add a reference to the `SwgTodoModel` definition under the `definitions` property (e.g. `/api/swagger/swagger.yaml`) as below:\n\n```yaml\nswagger: \"2.0\"\n# ...\ndefinitions:\n  SwgTodoModel:\n    $ref: ../../node_modules/@4geit/swg-todo-model/swagger.yaml#/definitions/SwgTodoModel\n# ...\n```\n\n3. SwgTodoModel also comes along with some endpoints you can expose to the API, to do so you will need to add a reference to the `SwgTodoModel` definition under the `paths` property (e.g. `/api/swagger/swagger.yaml`) as below:\n\n```yaml\nswagger: \"2.0\"\n# ...\npaths:\n  /todos:\n    $ref: ../../node_modules/@4geit/swg-todo-model/swagger.yaml#/definitions/TodoListPath\n  /todos/bulk:\n    $ref: ../../node_modules/@4geit/swg-todo-model/swagger.yaml#/definitions/TodoBulkPath\n  /todos/{id}:\n    $ref: ../../node_modules/@4geit/swg-todo-model/swagger.yaml#/definitions/TodoItemPath\n  /todos/populate:\n    $ref: ../../node_modules/@4geit/swg-todo-model/swagger.yaml#/definitions/PopulatePath\n# ...\n```\n\nAnd you will also need to add the path to the `controllers` folder of the `swg-todo-model` package so that swagger-node will find the relevant controller to use. Edit the file `/config/default.yaml` and add two new paths to the properties `mockControllersDirs` and `controllersDirs` as illustrated below:\n\n```yaml\nswagger:\n  # ...\n  bagpipes:\n    _router:\n      # ...\n      mockControllersDirs:\n        # ...\n        - node_modules/@4geit/swg-todo-model/mocks\n        # ...\n      controllersDirs:\n        # ...\n        - node_modules/@4geit/swg-todo-model/controllers\n        # ...\n```\n","maintainers":[{"email":"geraldine@starke.fr","name":"geraldinestarke"},{"email":"Fabian@starke.fr","name":"fabianstarke"},{"email":"caner@candan.fr","name":"canercandan"}],"time":{"modified":"2022-04-04T10:46:54.182Z","created":"2017-10-12T15:54:52.877Z","1.30.1":"2017-10-12T15:54:52.877Z","1.30.2":"2017-10-12T16:05:14.344Z","1.31.0":"2017-10-22T20:12:07.249Z","1.31.1":"2017-10-25T01:30:18.883Z","1.31.2":"2017-11-14T14:52:03.026Z"},"homepage":"https://gitlab.com/4geit/swagger-packages/tree/master/packages/swg-todo-model#README","keywords":[],"author":{"name":"Tolga Celik","email":"tolga.celik@hotmail.fr"},"bugs":{"url":"https://gitlab.com/4geit/swagger-packages/issues"},"license":"MIT","readmeFilename":"README.md"}