Backend server for inkstep
url for HTTP requests
Run ./install to install necessary programs
Run ./clean to clean the directory
Run ./run to run the server
sudo apt install mysql-server
sudo mysql_secure_installation utility
sudo systemctl start mysql
# Be warned Ubuntu uses `auth_socket` by default
Returns details of the journey corresponding to :id.
Returns the images for the journey corresponding to :id.
Creates a new journey object. Returns an empty json {}
Param | Description |
---|---|
user_id |
The user id |
artist_id |
The id of the artist |
tattoo_desc |
What the tattoo will be of |
size |
Size of the tattoo |
position |
Position on the body of the tattoo |
availability |
The availability of the user |
deposit |
Whether the user is willing to put down a deposit |
ref_images |
The number of reference images needed |
Puts the given base64encode image in to the database
Param | Description |
---|---|
journey_id |
The journey id |
image_data |
The base64Encoded image |
Param | Description |
---|---|
user_name |
The username |
user_email |
The email |
Retrieves the user information for the corresponding user id.
Retrieves the artist information for the corresponding user id.