{"id":26254551,"url":"https://github.com/bilal-fazlani/litedb.autoapi","last_synced_at":"2025-10-10T00:34:29.924Z","repository":{"id":75327268,"uuid":"124693685","full_name":"bilal-fazlani/LiteDb.AutoApi","owner":"bilal-fazlani","description":"Want to create an api without writing code?","archived":false,"fork":false,"pushed_at":"2020-04-19T12:24:58.000Z","size":10,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T07:36:08.711Z","etag":null,"topics":["asp-net-core","aspnet-web-api","dotnet-core","litedb","testing-tool"],"latest_commit_sha":null,"homepage":"","language":"C#","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/bilal-fazlani.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":"2018-03-10T19:56:30.000Z","updated_at":"2024-09-15T12:39:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe341d60-8aec-4f81-9861-115617e4f678","html_url":"https://github.com/bilal-fazlani/LiteDb.AutoApi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bilal-fazlani/LiteDb.AutoApi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2FLiteDb.AutoApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2FLiteDb.AutoApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2FLiteDb.AutoApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2FLiteDb.AutoApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bilal-fazlani","download_url":"https://codeload.github.com/bilal-fazlani/LiteDb.AutoApi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilal-fazlani%2FLiteDb.AutoApi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002359,"owners_count":26083357,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["asp-net-core","aspnet-web-api","dotnet-core","litedb","testing-tool"],"created_at":"2025-03-13T18:28:52.386Z","updated_at":"2025-10-10T00:34:29.912Z","avatar_url":"https://github.com/bilal-fazlani.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiteDb.AutoApi \n\nWant to create an api without writing code?\n\n[![Build status](https://ci.appveyor.com/api/projects/status/q99s5ef9xko6k8y0?svg=true)](https://ci.appveyor.com/project/bilal-fazlani/litedb-autoapi)\n[![tests](https://img.shields.io/appveyor/tests/bilal-fazlani/litedb-autoapi.svg)](https://ci.appveyor.com/project/bilal-fazlani/litedb-autoapi/build/tests)\n[![nuget release](https://img.shields.io/nuget/vpre/LiteDB.AutoApi.svg)](https://www.nuget.org/packages/LiteDB.AutoApi/)\n\nThis library let's you create CRUD apis in dotnet core without writing any controller, service or database code. \nAll you have to do is define your model... and that's it. This library will then expose \n\n- CREATE\n- UPDATE\n- DELETE\n- LIST\n- GET\n\nThese endpoints will persinst your data using a litedb. If you don't what litedb is, please check it out here -\u003e http://www.litedb.org/\n\n# Here's how it works\n\nFirst you install this nuget package `LiteDB.AutoApi` in your aspnet core application\n\nThen create a model class you want to persist and expose as endpoint. It needs to inherit from LiteDbModel class. For example :\n\n```c#\npublic class Vehicle : LiteDbModel\n{\n    public string Model { get; set; }\n    \n    public string Number { get; set; }\n}\n```\n\nNow, in the Startup class, make the following change :\n\n```c#\nservices.AddMvc()\n    .AddAutoApi\u003cVehicle\u003e(\"/vehicles\");\n```\n\nAnd we are done. Note that you can add any number of AutoApis.\n\nYou have successfully created an api which can \n\n- create/update a vehicle at `HTTPPOST` `/vehicles`\n- retrieve a vehicle by id at `HTTPGET` `/vehicles/{vehicleId}`\n- delete a vehicle at `HTTPDELETE` `/vehicles/{vehicleId}`\n- list all vehicles at `HTTPGET` `/vehicles`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilal-fazlani%2Flitedb.autoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilal-fazlani%2Flitedb.autoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilal-fazlani%2Flitedb.autoapi/lists"}