REST API for any sqlite database written in C#
Find a file
2025-02-09 22:15:52 +03:00
Properties Initial commit 2025-02-08 22:41:26 +03:00
.gitignore Code refactoring 2025-02-09 22:05:23 +03:00
appsettings.Development.json Initial commit 2025-02-08 22:41:26 +03:00
appsettings.json Initial commit 2025-02-08 22:41:26 +03:00
DatabaseRepository.cs Code refactoring 2025-02-09 22:05:23 +03:00
DatabaseWrapper.cs comments, feature | Added new methods and comments that describe work of DatabaseWrapper 2025-02-09 12:42:07 +03:00
LICENSE add licence 2025-02-09 09:49:00 +00:00
README.md readme update 2025-02-09 22:15:52 +03:00
RestySqlite.csproj Feature | web api created 2025-02-09 16:38:49 +03:00
Utils.cs Code refactoring 2025-02-09 22:05:23 +03:00
WebApi.cs Code refactoring 2025-02-09 22:05:23 +03:00

RestySqlite

WIP online sqlite database managment system

  • WebAPI implemented.
  • Database abstraction is almost done

How it works

It's a RESTfull application which will allows easy database manipulation.

Endpoints

GET:localhost/api" - provide json of tables inside database

GET:localhost/table_name/ - provide json of columns and their values inside table

GET:localhost/api/table_name/column_name/ - provide json of values inside column

GET:localhost/api/table_name/id - provide json-serilazed value from database

POST:localhost/api/sqlcommand - execute sql command to database.

Example usage

In example scope application is connected to database which have users table.

$ curl -X POST -d "INSERT INTO users (Name) VALUES ('Max')" http://localhost:5417/api/sqlcommand -i
$ curl -X GET http://localhost:5417/api/users

Manifest of goals

API will provide endpoint for each table and table column inside database.

API will allow execute any SQL command.

API will NOT protect from SQL injections. It's up to user manage security stuff.

API will NOT protect itself via password. It's up to user manage security stuff.