{"id":13839508,"url":"https://github.com/globocom/loopback-jsonschema-example","last_synced_at":"2025-07-11T03:32:21.569Z","repository":{"id":16937317,"uuid":"19699161","full_name":"globocom/loopback-jsonschema-example","owner":"globocom","description":null,"archived":true,"fork":false,"pushed_at":"2014-10-14T16:54:32.000Z","size":168,"stargazers_count":6,"open_issues_count":1,"forks_count":5,"subscribers_count":115,"default_branch":"master","last_synced_at":"2024-04-08T19:01:16.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/globocom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-12T13:12:26.000Z","updated_at":"2024-04-08T19:01:16.246Z","dependencies_parsed_at":"2022-09-05T15:50:25.872Z","dependency_job_id":null,"html_url":"https://github.com/globocom/loopback-jsonschema-example","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/globocom%2Floopback-jsonschema-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Floopback-jsonschema-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Floopback-jsonschema-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Floopback-jsonschema-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globocom","download_url":"https://codeload.github.com/globocom/loopback-jsonschema-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225675073,"owners_count":17506273,"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-08-04T17:00:28.490Z","updated_at":"2024-11-21T04:30:44.680Z","avatar_url":"https://github.com/globocom.png","language":"JavaScript","funding_links":[],"categories":["Examples"],"sub_categories":["Third Party"],"readme":"# Loopback JSON Schema Example\n\nAdds JSON Schema support to [LoopBack](https://github.com/strongloop/loopback).\n\n\n### Configuring a DataSource\n\nAdd a `loopbackJsonSchemaDb` entry to the `datasources.json` file with your data source configuration if you want to use any database. If no `loopbackJsonSchemaDb` entry is found, we fallback to using the default memory data source.\n\n\n```\n  \"loopbackJsonSchemaDb\": {\n    \"connector\": \"loopback-connector-mongodb\",\n    \"url\": \"mongodb://127.0.0.1:27017/your-database\",\n    \"debug\": true\n  }\n```\n## Using\n\n### Installing\n\n```\nmake setup\nmake run\n```\n\n### Dynamically defining Loopback models from a JSON Schema\n\n\n```\nmake post_schema\nmake create_person\n```\n\n```\n# Retrieve a created Person object\ncurl -i -XGET -H \"Content-Type: application/json\" http://localhost:5000/api/people/{id}\n```\n\n## Disclaimer\n\nThis is just a simple Loopback app using [loopback-jsonschema](https://github.com/globocom/loopback-jsonschema) module (there're no tests here). Do not use this app in production!\n\n## References\n\nhttps://github.com/globocom/loopback-jsonschema\n\nhttp://json-schema.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Floopback-jsonschema-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobocom%2Floopback-jsonschema-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Floopback-jsonschema-example/lists"}