Classify is a simple REST API project. It was build for fun and an excuse to write in Kotlin. You can also check my other projects that consumed this api here and here
You run it using terminal:
mvn spring-boot:run
Edit the datasource configuration in application.yml
datasource:
url: <url>
username: <your-username>
password: <your-password>
driver-class-name: <driver-class-name>
Create your user acount by sending a POST request to /auth/createToken with your username and password inside the body. On success, user information and API token will be returned:
{
"id": 1,
"username": "verliemanuel",
"password": "123"
"role": "visitor",
"token": "cb810da7d03b85335ea18babf3536fbf2a31ccdf"
}
All subsequent API requests must include this token in the HTTP header for user identification.
Header key will be Authorization with value of 'Token' followed by a single space and then token string:
Authorization: Token 753da61b4c39bd195782710c82fe3c3b1e7f7428
To contribute, please send us a pull request from your fork of this repository.