1 Api
Nitwel edited this page 2021-09-17 12:56:06 +02:00

Structure

Api Structure

Name Description
Rest This is the Rest Api endpoint everyone can access. Handles incomming requests.
GraphQL ----
Services Provide functions to create, edit or delete items inside the database. Turns every action into an AST object which then can be processed by the run-ast function.
run-ast Interpets the AST object and with the use of knex, creates SQL Requests that go directly to the DB.
knex Is a helper library that allows to easily create SQL statements, independend of which DB is used.
DB Can be any Database like Postgres, Sqlite or MariaDB.