Register
POST to https://www.api.tattooscalculator.com/register with data name, email, password, password_confirmation. Email must be uniquely.
Example:
curl -X POST https://www.api.tattooscalculator.com/register -H "Accept: application/json" -H "Content-Type: application/json" -d '{"name": "MyName", "email": "name@mail.com", "password": "123123123", "password_confirmation": "123123123"}'
Login
GET to https://www.api.tattooscalculator.com/login with data email and password.
Example https://www.api.tattooscalculator.com/login?email=name@mail.com&password=123123123
or
GET to https://www.api.tattooscalculator.com/user/login/{email}/{password}, where {email} - user email, password - user password.
Example https://www.api.tattooscalculator.com/user/login/name@mail.com/123123123
Reset password
POST to https://tattooscalculator.com/password/email with data email
Example:
curl --data "email=mikhalkevich@ya.ru" https://tattooscalculator.com/password/email
User
All users - users
Find user by id user/id/{id}, where {id} - integer
Find user by email user/email/{email}, where {email} - email
Find by user_id account/{id}, where {user_id} - integer
Account
Home home, (if user logged in)
Add account for registered userGet to https://www.api.tattooscalculator.com/account/add/{user_id} where {user_id} integer, with data picture, status
Example: https://www.api.tattooscalculator.com/account/add/5?picture=http://test.com&status=ok
Order
All User orders get - http://api.tattooscalculator.com/home/orders
New order post to this page - http://api.tattooscalculator.com/home/order
Example to post order:
curl -X POST http://api.tattooscalculator.com/home/order -H "Accept: application/json" -H "Content-Type: application/json" -d '{"width": 3, "height": 4, "size": 12, "catalogs_id": 1, "artist_id":1, "picture_data":"https://tattooscalculator.com/logo/Logo_text.png","price":20, "status":"payd20","type":"client","putdate":"11-03-2021 13:00","putdate_end":"11-03-2021 17:00"}'
Saloon
Find by saloon_id saloon/{id}, where {saloon_id} - integer
All saloons saloons
Artists
Find by artist_id artist/{id}, where {artist_id} - integer
All artists artists
Galleries
Find by gallery_id gallery/{id}, where {gallery_id} - integer
All galleries galleries
small image are in folder https://tattooscalculator.com/uploads/thumb/
original image are in folder https://tattooscalculator.com/uploads/
(gallery belongs to artist)
Catalog
Find by catalog_id catalog/{id}, where {catalog_id} - integer
All Catalogs catalogs
(catalog has many styles)
Styles
Find by style_id style/{id}, where {style_id} - integer
All Styles styles
(style belongs to catalog)
Sizes
Find by size_id size/{id}, where {size_id} - integer
All Sizes size
(style belongs to catalog)
PirsingCatalog with Prices
Find by style_id pirsing/{id} (example), where {pirsing_id} - integer
All Pirsing pirsing
(Prise belongs to PirsingCatalog)