Skip to content

Slenkis/scythe

Repository files navigation

Scythe

Ktor service for adding and resetting minutes.

Installation and build

git clone https://github.com/Slenkis/scythe.git
cd scythe/
chmod +x gradlew
./gradlew shadowJar

Usage

Run service

java -jar build/libs/scythe.jar

url: localhost:8080
username: admin
password: 12345

Run service with a custom config

java -jar build/libs/scythe.jar -config="/path/to/cofig"

References

Endpoints

/ - GET: return HTML page for control minutes

/temp - GET: return JSON with total minutes

/temp - PUT: adds minutes from JSON body to counter; return 200 or 406 or 415 code

/temp - POST: reset counter to 0 minutes; return 200 code

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published