D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
api
/
storage
/
framework
/
views
/
Filename :
036d78253df820a842d54d3582f694c606bd71a2.php
back
Copy
<?php $__env->startSection('content'); ?> <div class="container"> <div class="row justify-content-center"> <div class="col-md-12"> <div class="card"> <div class="card-header">Api Documentation</div> <div class="card-body"> <h2>Register</h2> <p><b>POST</b> to <b><?php echo e(asset('register')); ?></b> with data <b>name, email, password, password_confirmation</b>. Email must be uniquely.</p> <p><b>Example</b> curl -X POST <?php echo e(asset('register')); ?> -H "Accept: application/json" -H "Content-Type: application/json" -d '{"name": "MyName", "email": "name@mail.com", "password": "123123123", "password_confirmation": "123123123"}' </p> <h2>Login</h2> <p><b>GET</b> to <b><?php echo e(asset('login')); ?></b> with data <b>email and password</b>.</p> <p><b>Example</b> <a href="<?php echo e(asset('login?email=name@mail.com&password=123123123')); ?>"><?php echo e(asset('login?email=name@mail.com&password=123123123')); ?></a> </p> <p>or</p> <p><b>GET</b> to <b><?php echo e(asset('/user/login/{email}/{password}')); ?></b>, where {email} - user email, password - user password. </p> <p><b>Example</b> <a href="<?php echo e(asset('/user/login/name@mail.com/123123123')); ?>"><?php echo e(asset('/user/login/name@mail.com/123123123')); ?></a> </p> <h2>Reset password</h2> <p><b>POST</b> to https://tattooscalculator.com/password/email with data <b>email</b></p> <p><b>Example</b> curl --data "email=mikhalkevich@ya.ru" https://tattooscalculator.com/password/email</p> <hr /> <h2>User</h2> <p><b>All users</b> - <a href="<?php echo e(asset('users')); ?>">users</a></p> <p><b>Find user by id</b> <a href="<?php echo e(asset('user/id/5')); ?>">user/id/{id}</a>, where {id} - integer</p> <p><b>Find user by email</b> <a href="<?php echo e(asset('user/email/abasebastopol@gmail.com')); ?>">user/email/{email}</a>, where {email} - email</p> <hr /> <h2>Account</h2> <p><b>Find by user_id</b> <a href="<?php echo e(asset('account/5')); ?>">account/{id}</a>, where {user_id} - integer</p> <b>Add new</b><br /> <p><b>Get</b> to <?php echo e(asset('account/add/{user_id}')); ?> where {user_id} integer, with data <b>picture, status</b><br /> Example: <a href="<?php echo e(asset('account/add/5?picture=http://test.com&status=ok')); ?>"><?php echo e(asset('account/add/5?picture=http://test.com&status=ok')); ?></a> </p> <hr /> <h2>Saloon</h2> <p><b>Find by saloon_id</b> <a href="<?php echo e(asset('saloon/5')); ?>">saloon/{id}</a>, where {saloon_id} - integer</p> <p><b>All saloons</b> <a href="<?php echo e(asset('saloons')); ?>">saloons</a> </p> <hr /> <h2>Artists</h2> <p><b>Find by artist_id</b> <a href="<?php echo e(asset('artist/5')); ?>">artist/{id}</a>, where {artist_id} - integer</p> <p><b>All artists</b> <a href="<?php echo e(asset('artists')); ?>">artists</a> </p> <hr /> <h2>Galleries</h2> <p><b>Find by gallery_id</b> <a href="<?php echo e(asset('gallery/28')); ?>">gallery/{id}</a>, where {gallery_id} - integer</p> <p><b>All galleries</b> <a href="<?php echo e(asset('galleries')); ?>">galleries</a></p> <p>small image are in folder <b>https://tattooscalculator.com/uploads/thumb/</b></p> <p>original image are in folder <b>https://tattooscalculator.com/uploads/</b></p> <p>(<em>gallery belongs to artist</em>)</p> <hr /> <h2>Catalog</h2> <p><b>Find by catalog_id</b> <a href="<?php echo e(asset('catalog/4')); ?>">catalog/{id}</a>, where {catalog_id} - integer</p> <p><b>All Catalogs</b> <a href="<?php echo e(asset('catalogs')); ?>">catalogs</a> </p> <p>(<em>catalog has many styles</em>)</p> <h2>Styles</h2> <p><b>Find by style_id</b> <a href="<?php echo e(asset('style/4')); ?>">style/{id}</a>, where {style_id} - integer</p> <p><b>All Styles</b> <a href="<?php echo e(asset('styles')); ?>">styles</a> </p> <p>(<em>style belongs to catalog</em>)</p> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/tattooapi/resources/views/welcome.blade.php ENDPATH**/ ?>