new project instead :)
Note: this repo is outdated. See theπ
Lasertime π
RESTful API to log and access laser time for users of the Space API Reference
here.
Full API Documentation isThe Lasertime API is organized around REST. The API accepts JSON, multipart, and XML request bodies, returns JSON response bodies, and uses standard HTTP response codes and authentication.
The order of parameters in request bodies is not important.
Base URL
https://api.lasertime.iron59.co.uk
The API may only be used with TLS.
π³
Deploying to Docker Example usage
docker run -d -p8080:8080 -e DATABASE_HOST="dev" -e DATABASE_PASSWORD="epicpassword123" fozflow/lasertime:latest
π
Environment variables The default values are OK to use if you use the MySQL Docker configuration in the "/SQL Server Setup
" folder of the Lasertime Server repo. Well, all apart from the hostname, of course, unless you deploy it on a machine with the hostname hostname
, in which case no changes at all to the environmental vars are required!
Name | Description | Example | Default value |
---|---|---|---|
DATABASE_HOST |
The hostname or IP address of the MySQL server to connect to | 172.16.55.241 |
hostname |
DATABASE_USERNAME |
Username of the MySQL user | gary |
root |
DATABASE_PASSWORD |
Password for said user | mmmm cheese on toast |
password |
DATABASE_NAME |
Name of the database for lasertime | worm_on_a_string |
laser |
π
Why Swift? - Fast growing, hugely popular language
π - Backed by Apple and open sourced
π - Modern
π - Ultra safe
β - Super fast
π - You can also use emojis as variable names (lol):
let π§ = "apple juice π₯°"
print("I love " + π§)
Output:
I love apple juice π₯°