Skip to content

tachibanana/classify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

256 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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

Project Setup

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>

Authentication

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

Contributing

To contribute, please send us a pull request from your fork of this repository.

About

Android Base Class Record Ongoing

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Kotlin 78.9%
  • HTML 9.6%
  • Java 9.2%
  • CSS 2.3%