Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (19 loc) · 576 Bytes

File metadata and controls

25 lines (19 loc) · 576 Bytes

Framework-less Java API

This project has the educational purpose of understanding the underlying principles and mechanics involved in handling HTTP requests, managing routes, processing data and even dependency injection without relying on any frameworks such as Spring, Quarkus, Spark etc.

Requirements

  • Java 17

Authentication

Basic auth with username: admin and password admin.

Endpoints

POST /api/users/register

Create a user. Payload:

{
  "login": "login",
  "password": "password"
}

GET /api/users/list

List created users.