관리-도구
편집 파일: welcome.blade.php
@extends('layouts.app') @section('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>{{asset('register')}}</b> with data <b>name, email, password, password_confirmation</b>. Email must be uniquely.</p> <p><b>Example: </b><br /> <code> curl -X POST {{asset('register')}} -H "Accept: application/json" -H "Content-Type: application/json" -d '{"name": "MyName", "email": "name@mail.com", "password": "123123123", "password_confirmation": "123123123"}' </code> </p> <h2>Login</h2> <p><b>GET</b> to <b>{{asset('login')}}</b> with data <b>email and password</b>.</p> <p><b>Example</b> <a href="{{asset('login?email=name@mail.com&password=123123123')}}">{{asset('login?email=name@mail.com&password=123123123')}}</a> </p> <p>or</p> <p><b>GET</b> to <b>{{asset('/user/login/{email}/{password}')}}</b>, where {email} - user email, password - user password. </p> <p><b>Example</b> <a href="{{asset('/user/login/name@mail.com/123123123')}}">{{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> <br /> <code> curl --data "email=mikhalkevich@ya.ru" https://tattooscalculator.com/password/email</p> </code> <hr /> <h2>User</h2> <p><b>All users</b> - <a href="{{asset('users')}}">users</a></p> <p><b>Find user by id</b> <a href="{{asset('user/id/5')}}">user/id/{id}</a>, where {id} - integer</p> <p><b>Find user by email</b> <a href="{{asset('user/email/abasebastopol@gmail.com')}}">user/email/{email}</a>, where {email} - email</p> <p><b>Find by user_id</b> <a href="{{asset('account/5')}}">account/{id}</a>, where {user_id} - integer</p> <hr /> <h2>Account</h2> <p><b>Home</b> <a href="{{asset('home')}}">home</a>, (if user logged in)</p> <b>Add account for registered user</b><br /> <p><b>Get</b> to {{asset('account/add/{user_id}')}} where {user_id} integer, with data <b>picture, status</b><br /> Example: <a href="{{asset('account/add/5?picture=http://test.com&status=ok')}}">{{asset('account/add/5?picture=http://test.com&status=ok')}}</a> </p> <h2>Order</h2> <p><b>All User orders</b> get - http://api.tattooscalculator.com/home/orders </p> <p><b>New order</b> post to this page - http://api.tattooscalculator.com/home/order </p> <p>Example to post order: <br /> <code> 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"}' </code></p> <hr /> <h2>Saloon</h2> <p><b>Find by saloon_id</b> <a href="{{asset('saloon/5')}}">saloon/{id}</a>, where {saloon_id} - integer</p> <p><b>All saloons</b> <a href="{{asset('saloons')}}">saloons</a> </p> <hr /> <h2>Artists</h2> <p><b>Find by artist_id</b> <a href="{{asset('artist/5')}}">artist/{id}</a>, where {artist_id} - integer</p> <p><b>All artists</b> <a href="{{asset('artists')}}">artists</a> </p> <hr /> <h2>Galleries</h2> <p><b>Find by gallery_id</b> <a href="{{asset('gallery/28')}}">gallery/{id}</a>, where {gallery_id} - integer</p> <p><b>All galleries</b> <a href="{{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="{{asset('catalog/4')}}">catalog/{id}</a>, where {catalog_id} - integer</p> <p><b>All Catalogs</b> <a href="{{asset('catalogs')}}">catalogs</a> </p> <p>(<em>catalog has many styles</em>)</p> <hr /> <h2>Styles</h2> <p><b>Find by style_id</b> <a href="{{asset('style/4')}}">style/{id}</a>, where {style_id} - integer</p> <p><b>All Styles</b> <a href="{{asset('styles')}}">styles</a> </p> <p>(<em>style belongs to catalog</em>)</p> <hr /> <h2>Sizes</h2> <p><b>Find by size_id</b> <a href="{{asset('size/4')}}">size/{id}</a>, where {size_id} - integer</p> <p><b>All Sizes</b> <a href="{{asset('sizes')}}">size</a> </p> <p>(<em>style belongs to catalog</em>)</p> <hr /> <h2>PirsingCatalog with Prices</h2> <p><b>Find by style_id</b> <a href="{{asset('pirsing/1')}}">pirsing/{id}</a> (example), where {pirsing_id} - integer</p> <p><b>All Pirsing</b> <a href="{{asset('pirsing')}}">pirsing</a> </p> <p>(<em>Prise belongs to PirsingCatalog</em>)</p> </div> </div> </div> </div> </div> @endsection