⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
stores.dev-unit.com
/
public
/
docs
/
View File Name :
index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <title>Your App Documentation</title> <link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet"> <link rel="stylesheet" href="../docs/css/theme-default.style.css" media="screen"> <link rel="stylesheet" href="../docs/css/theme-default.print.css" media="print"> <script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js"></script> <link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/styles/obsidian.min.css"> <script src="https://unpkg.com/@highlightjs/cdn-assets@11.6.0/highlight.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jets/0.14.1/jets.min.js"></script> <style id="language-style"> /* starts out as display none and is replaced with js later */ body .content .bash-example code { display: none; } body .content .javascript-example code { display: none; } </style> <script> var tryItOutBaseUrl = "https://farmart.test"; var useCsrf = Boolean(); var csrfUrl = "/sanctum/csrf-cookie"; </script> <script src="../docs/js/tryitout-4.26.0.js"></script> <script src="../docs/js/theme-default-4.26.0.js"></script> </head> <body data-languages="["bash","javascript"]"> <a href="#" id="nav-button"> <span> MENU <img src="../docs/images/navbar.png" alt="navbar-image"/> </span> </a> <div class="tocify-wrapper"> <div class="lang-selector"> <button type="button" class="lang-button" data-language-name="bash">bash</button> <button type="button" class="lang-button" data-language-name="javascript">javascript</button> </div> <div class="search"> <input type="text" class="search" id="input-search" placeholder="Search"> </div> <div id="toc"> <ul id="tocify-header-introduction" class="tocify-header"> <li class="tocify-item level-1" data-unique="introduction"> <a href="#introduction">Introduction</a> </li> </ul> <ul id="tocify-header-authenticating-requests" class="tocify-header"> <li class="tocify-item level-1" data-unique="authenticating-requests"> <a href="#authenticating-requests">Authenticating requests</a> </li> </ul> <ul id="tocify-header-authentication" class="tocify-header"> <li class="tocify-item level-1" data-unique="authentication"> <a href="#authentication">Authentication</a> </li> <ul id="tocify-subheader-authentication" class="tocify-subheader"> <li class="tocify-item level-2" data-unique="authentication-POSTapi-v1-register"> <a href="#authentication-POSTapi-v1-register">Register</a> </li> <li class="tocify-item level-2" data-unique="authentication-POSTapi-v1-login"> <a href="#authentication-POSTapi-v1-login">Login</a> </li> <li class="tocify-item level-2" data-unique="authentication-POSTapi-v1-password-forgot"> <a href="#authentication-POSTapi-v1-password-forgot">Forgot password</a> </li> <li class="tocify-item level-2" data-unique="authentication-POSTapi-v1-resend-verify-account-email"> <a href="#authentication-POSTapi-v1-resend-verify-account-email">Resend email verification</a> </li> <li class="tocify-item level-2" data-unique="authentication-GETapi-v1-logout"> <a href="#authentication-GETapi-v1-logout">Logout</a> </li> </ul> </ul> <ul id="tocify-header-blog" class="tocify-header"> <li class="tocify-item level-1" data-unique="blog"> <a href="#blog">Blog</a> </li> <ul id="tocify-subheader-blog" class="tocify-subheader"> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-search"> <a href="#blog-GETapi-v1-search">Search post</a> </li> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-posts"> <a href="#blog-GETapi-v1-posts">List posts</a> </li> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-categories"> <a href="#blog-GETapi-v1-categories">List categories</a> </li> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-tags"> <a href="#blog-GETapi-v1-tags">List tags</a> </li> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-posts-filters"> <a href="#blog-GETapi-v1-posts-filters">Filters posts</a> </li> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-posts--slug-"> <a href="#blog-GETapi-v1-posts--slug-">Get post by slug</a> </li> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-categories-filters"> <a href="#blog-GETapi-v1-categories-filters">Filters categories</a> </li> <li class="tocify-item level-2" data-unique="blog-GETapi-v1-categories--slug-"> <a href="#blog-GETapi-v1-categories--slug-">Get category by slug</a> </li> </ul> </ul> <ul id="tocify-header-profile" class="tocify-header"> <li class="tocify-item level-1" data-unique="profile"> <a href="#profile">Profile</a> </li> <ul id="tocify-subheader-profile" class="tocify-subheader"> <li class="tocify-item level-2" data-unique="profile-GETapi-v1-me"> <a href="#profile-GETapi-v1-me">Get the user profile information.</a> </li> <li class="tocify-item level-2" data-unique="profile-PUTapi-v1-me"> <a href="#profile-PUTapi-v1-me">Update profile</a> </li> <li class="tocify-item level-2" data-unique="profile-POSTapi-v1-update-avatar"> <a href="#profile-POSTapi-v1-update-avatar">Update Avatar</a> </li> <li class="tocify-item level-2" data-unique="profile-PUTapi-v1-update-password"> <a href="#profile-PUTapi-v1-update-password">Update password</a> </li> </ul> </ul> </div> <ul class="toc-footer" id="toc-footer"> <li style="padding-bottom: 5px;"><a href="../docs/collection.json">View Postman collection</a></li> <li style="padding-bottom: 5px;"><a href="../docs/openapi.yaml">View OpenAPI spec</a></li> <li><a href="http://github.com/knuckleswtf/scribe">Documentation powered by Scribe ✍</a></li> </ul> <ul class="toc-footer" id="last-updated"> <li>Last updated: December 8, 2023</li> </ul> </div> <div class="page-wrapper"> <div class="dark-box"></div> <div class="content"> <h1 id="introduction">Introduction</h1> <aside> <strong>Base URL</strong>: <code>https://farmart.test</code> </aside> <p>This documentation aims to provide all the information you need to work with our API.</p> <aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile). You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside> <h1 id="authenticating-requests">Authenticating requests</h1> <p>This API is not authenticated.</p> <h1 id="authentication">Authentication</h1> <h2 id="authentication-POSTapi-v1-register">Register</h2> <p> </p> <span id="example-requests-POSTapi-v1-register"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request POST \ "https://farmart.test/api/v1/register" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: application/json" \ --data "{ \"first_name\": \"cupiditate\", \"last_name\": \"voluptas\", \"email\": \"moen.daron@example.com\", \"password\": \"|7>&WrhKQ\", \"phone\": \"eaque\", \"password_confirmation\": \"aliquam\" }" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/register" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "application/json", "Accept": "application/json", }; let body = { "first_name": "cupiditate", "last_name": "voluptas", "email": "moen.daron@example.com", "password": "|7>&WrhKQ", "phone": "eaque", "password_confirmation": "aliquam" }; fetch(url, { method: "POST", headers, body: JSON.stringify(body), }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-POSTapi-v1-register"> <blockquote> <p>Example response (200):</p> </blockquote> <pre> <code class="language-json" style="max-height: 300px;">{ "error": false, "data": null, "message": "Registered successfully! We emailed you to verify your account!" }</code> </pre> <blockquote> <p>Example response (422):</p> </blockquote> <pre> <code class="language-json" style="max-height: 300px;">{ "message": "The given data was invalid.", "errors": { "first_name": [ "The first name field is required." ], "last_name": [ "The last name field is required." ], "email": [ "The email field is required." ], "password": [ "The password field is required." ] } }</code> </pre> </span> <span id="execution-results-POSTapi-v1-register" hidden> <blockquote>Received response<span id="execution-response-status-POSTapi-v1-register"></span>: </blockquote> <pre class="json"><code id="execution-response-content-POSTapi-v1-register" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-POSTapi-v1-register" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-POSTapi-v1-register"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-POSTapi-v1-register" data-method="POST" data-path="api/v1/register" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('POSTapi-v1-register', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTapi-v1-register" onclick="tryItOut('POSTapi-v1-register');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTapi-v1-register" onclick="cancelTryOut('POSTapi-v1-register');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTapi-v1-register" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-black">POST</small> <b><code>api/v1/register</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="POSTapi-v1-register" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="POSTapi-v1-register" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="POSTapi-v1-register" value="application/json" data-component="header"> <br> <p>Example: <code>application/json</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>first_name</code></b> <small>string</small> <input type="text" style="display: none" name="first_name" data-endpoint="POSTapi-v1-register" value="cupiditate" data-component="body"> <br> <p>The name of the user. Example: <code>cupiditate</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>last_name</code></b> <small>string</small> <input type="text" style="display: none" name="last_name" data-endpoint="POSTapi-v1-register" value="voluptas" data-component="body"> <br> <p>The name of the user. Example: <code>voluptas</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>email</code></b> <small>string</small> <input type="text" style="display: none" name="email" data-endpoint="POSTapi-v1-register" value="moen.daron@example.com" data-component="body"> <br> <p>The email of the user. Example: <code>moen.daron@example.com</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>password</code></b> <small>string</small> <input type="text" style="display: none" name="password" data-endpoint="POSTapi-v1-register" value="|7>&WrhKQ" data-component="body"> <br> <p>The password of user to create. Example: <code>|7>&WrhKQ</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>phone</code></b> <small>string</small> <input type="text" style="display: none" name="phone" data-endpoint="POSTapi-v1-register" value="eaque" data-component="body"> <br> <p>The phone of the user. Example: <code>eaque</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>password_confirmation</code></b> <small>string</small> <input type="text" style="display: none" name="password_confirmation" data-endpoint="POSTapi-v1-register" value="aliquam" data-component="body"> <br> <p>The password confirmation. Example: <code>aliquam</code></p> </div> </form> <h2 id="authentication-POSTapi-v1-login">Login</h2> <p> </p> <span id="example-requests-POSTapi-v1-login"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request POST \ "https://farmart.test/api/v1/login" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: application/json" \ --data "{ \"email\": \"bswaniawski@example.net\", \"password\": \"f_~7THR\\\\OC|rM)\", \"login\": \"esse\" }" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/login" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "application/json", "Accept": "application/json", }; let body = { "email": "bswaniawski@example.net", "password": "f_~7THR\\OC|rM)", "login": "esse" }; fetch(url, { method: "POST", headers, body: JSON.stringify(body), }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-POSTapi-v1-login"> <blockquote> <p>Example response (200):</p> </blockquote> <pre> <code class="language-json" style="max-height: 300px;">{ "error": false, "data": { "token": "1|aF5s7p3xxx1lVL8hkSrPN72m4wPVpTvTs..." }, "message": null }</code> </pre> </span> <span id="execution-results-POSTapi-v1-login" hidden> <blockquote>Received response<span id="execution-response-status-POSTapi-v1-login"></span>: </blockquote> <pre class="json"><code id="execution-response-content-POSTapi-v1-login" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-POSTapi-v1-login" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-POSTapi-v1-login"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-POSTapi-v1-login" data-method="POST" data-path="api/v1/login" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('POSTapi-v1-login', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTapi-v1-login" onclick="tryItOut('POSTapi-v1-login');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTapi-v1-login" onclick="cancelTryOut('POSTapi-v1-login');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTapi-v1-login" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-black">POST</small> <b><code>api/v1/login</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="POSTapi-v1-login" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="POSTapi-v1-login" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="POSTapi-v1-login" value="application/json" data-component="header"> <br> <p>Example: <code>application/json</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>email</code></b> <small>string</small> <input type="text" style="display: none" name="email" data-endpoint="POSTapi-v1-login" value="bswaniawski@example.net" data-component="body"> <br> <p>Must be a valid email address. Example: <code>bswaniawski@example.net</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>password</code></b> <small>string</small> <input type="text" style="display: none" name="password" data-endpoint="POSTapi-v1-login" value="f_~7THR\OC|rM)" data-component="body"> <br> <p>The password of user to create. Example: <code>f_~7THR\OC|rM)</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>login</code></b> <small>string</small> <input type="text" style="display: none" name="login" data-endpoint="POSTapi-v1-login" value="esse" data-component="body"> <br> <p>The email/phone of the user. Example: <code>esse</code></p> </div> </form> <h2 id="authentication-POSTapi-v1-password-forgot">Forgot password</h2> <p> </p> <p>Send a reset link to the given user.</p> <span id="example-requests-POSTapi-v1-password-forgot"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request POST \ "https://farmart.test/api/v1/password/forgot" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: application/json" \ --data "{ \"email\": \"rhiannon.windler@example.org\" }" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/password/forgot" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "application/json", "Accept": "application/json", }; let body = { "email": "rhiannon.windler@example.org" }; fetch(url, { method: "POST", headers, body: JSON.stringify(body), }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-POSTapi-v1-password-forgot"> </span> <span id="execution-results-POSTapi-v1-password-forgot" hidden> <blockquote>Received response<span id="execution-response-status-POSTapi-v1-password-forgot"></span>: </blockquote> <pre class="json"><code id="execution-response-content-POSTapi-v1-password-forgot" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-POSTapi-v1-password-forgot" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-POSTapi-v1-password-forgot"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-POSTapi-v1-password-forgot" data-method="POST" data-path="api/v1/password/forgot" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('POSTapi-v1-password-forgot', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTapi-v1-password-forgot" onclick="tryItOut('POSTapi-v1-password-forgot');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTapi-v1-password-forgot" onclick="cancelTryOut('POSTapi-v1-password-forgot');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTapi-v1-password-forgot" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-black">POST</small> <b><code>api/v1/password/forgot</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="POSTapi-v1-password-forgot" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="POSTapi-v1-password-forgot" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="POSTapi-v1-password-forgot" value="application/json" data-component="header"> <br> <p>Example: <code>application/json</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>email</code></b> <small>string</small> <input type="text" style="display: none" name="email" data-endpoint="POSTapi-v1-password-forgot" value="rhiannon.windler@example.org" data-component="body"> <br> <p>The email of the user. Example: <code>rhiannon.windler@example.org</code></p> </div> </form> <h2 id="authentication-POSTapi-v1-resend-verify-account-email">Resend email verification</h2> <p> </p> <p>Resend the email verification notification.</p> <span id="example-requests-POSTapi-v1-resend-verify-account-email"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request POST \ "https://farmart.test/api/v1/resend-verify-account-email" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: application/json" \ --data "{ \"email\": \"marcelle.bergnaum@example.net\" }" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/resend-verify-account-email" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "application/json", "Accept": "application/json", }; let body = { "email": "marcelle.bergnaum@example.net" }; fetch(url, { method: "POST", headers, body: JSON.stringify(body), }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-POSTapi-v1-resend-verify-account-email"> </span> <span id="execution-results-POSTapi-v1-resend-verify-account-email" hidden> <blockquote>Received response<span id="execution-response-status-POSTapi-v1-resend-verify-account-email"></span>: </blockquote> <pre class="json"><code id="execution-response-content-POSTapi-v1-resend-verify-account-email" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-POSTapi-v1-resend-verify-account-email" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-POSTapi-v1-resend-verify-account-email"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-POSTapi-v1-resend-verify-account-email" data-method="POST" data-path="api/v1/resend-verify-account-email" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('POSTapi-v1-resend-verify-account-email', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTapi-v1-resend-verify-account-email" onclick="tryItOut('POSTapi-v1-resend-verify-account-email');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTapi-v1-resend-verify-account-email" onclick="cancelTryOut('POSTapi-v1-resend-verify-account-email');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTapi-v1-resend-verify-account-email" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-black">POST</small> <b><code>api/v1/resend-verify-account-email</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="POSTapi-v1-resend-verify-account-email" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="POSTapi-v1-resend-verify-account-email" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="POSTapi-v1-resend-verify-account-email" value="application/json" data-component="header"> <br> <p>Example: <code>application/json</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>email</code></b> <small>string</small> <input type="text" style="display: none" name="email" data-endpoint="POSTapi-v1-resend-verify-account-email" value="marcelle.bergnaum@example.net" data-component="body"> <br> <p>The email of the user. Example: <code>marcelle.bergnaum@example.net</code></p> </div> </form> <h2 id="authentication-GETapi-v1-logout">Logout</h2> <p> <small class="badge badge-darkred">requires authentication</small> </p> <span id="example-requests-GETapi-v1-logout"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/logout" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/logout" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-logout"> <blockquote> <p>Example response (302):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private location: https://farmart.test/login content-type: text/html; charset=UTF-8 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;"><!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="0;url='https://farmart.test/login'" /> <title>Redirecting to https://farmart.test/login</title> </head> <body> Redirecting to <a href="https://farmart.test/login">https://farmart.test/login</a>. </body> </html></code> </pre> </span> <span id="execution-results-GETapi-v1-logout" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-logout"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-logout" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-logout" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-logout"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-logout" data-method="GET" data-path="api/v1/logout" data-authed="1" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-logout', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-logout" onclick="tryItOut('GETapi-v1-logout');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-logout" onclick="cancelTryOut('GETapi-v1-logout');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-logout" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/logout</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" class="auth-value" data-endpoint="GETapi-v1-logout" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-logout" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> </form> <h1 id="blog">Blog</h1> <h2 id="blog-GETapi-v1-search">Search post</h2> <p> </p> <span id="example-requests-GETapi-v1-search"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/search" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: application/json" \ --data "{ \"q\": \"neque\" }" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/search" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "application/json", "Accept": "application/json", }; let body = { "q": "neque" }; fetch(url, { method: "GET", headers, body: JSON.stringify(body), }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-search"> <blockquote> <p>Example response (200):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 59 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "error": true, "data": null, "message": "No results found, please try with different keywords." }</code> </pre> </span> <span id="execution-results-GETapi-v1-search" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-search"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-search" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-search" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-search"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-search" data-method="GET" data-path="api/v1/search" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-search', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-search" onclick="tryItOut('GETapi-v1-search');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-search" onclick="cancelTryOut('GETapi-v1-search');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-search" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/search</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-search" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-search" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="GETapi-v1-search" value="application/json" data-component="header"> <br> <p>Example: <code>application/json</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>q</code></b> <small>string</small> <input type="text" style="display: none" name="q" data-endpoint="GETapi-v1-search" value="neque" data-component="body"> <br> <p>The search keyword. Example: <code>neque</code></p> </div> </form> <h2 id="blog-GETapi-v1-posts">List posts</h2> <p> </p> <span id="example-requests-GETapi-v1-posts"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/posts" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/posts" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-posts"> <blockquote> <p>Example response (200):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 58 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "data": [ { "id": 1, "name": "4 Expert Tips On How To Choose The Right Men’s Wallet", "slug": "4-expert-tips-on-how-to-choose-the-right-mens-wallet", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/1.jpg", "categories": [ { "id": 2, "name": "Fashion", "slug": "fashion", "url": "https://farmart.test/blog/fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum." }, { "id": 3, "name": "Electronic", "slug": "electronic", "url": "https://farmart.test/blog/electronic", "description": "Qui rerum ut impedit dolorem odio. Magnam non cupiditate et soluta placeat a id voluptatem. Dolores totam enim eveniet deserunt et architecto magnam." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 2, "name": "Sexy Clutches: How to Buy & Wear a Designer Clutch Bag", "slug": "sexy-clutches-how-to-buy-wear-a-designer-clutch-bag", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/2.jpg", "categories": [ { "id": 1, "name": "Ecommerce", "slug": "ecommerce", "url": "https://farmart.test/blog/ecommerce", "description": "Qui dolores minus quia. Incidunt et et veniam sequi illum dolor. Quis rerum ullam harum ipsum voluptas eveniet." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 3, "name": "The Top 2020 Handbag Trends to Know", "slug": "the-top-2020-handbag-trends-to-know", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/3.jpg", "categories": [ { "id": 1, "name": "Ecommerce", "slug": "ecommerce", "url": "https://farmart.test/blog/ecommerce", "description": "Qui dolores minus quia. Incidunt et et veniam sequi illum dolor. Quis rerum ullam harum ipsum voluptas eveniet." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 4, "name": "How to Match the Color of Your Handbag With an Outfit", "slug": "how-to-match-the-color-of-your-handbag-with-an-outfit", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/4.jpg", "categories": [ { "id": 2, "name": "Fashion", "slug": "fashion", "url": "https://farmart.test/blog/fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 5, "name": "How to Care for Leather Bags", "slug": "how-to-care-for-leather-bags", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/5.jpg", "categories": [ { "id": 2, "name": "Fashion", "slug": "fashion", "url": "https://farmart.test/blog/fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 6, "name": "We're Crushing Hard on Summer's 10 Biggest Bag Trends", "slug": "were-crushing-hard-on-summers-10-biggest-bag-trends", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/6.jpg", "categories": [ { "id": 2, "name": "Fashion", "slug": "fashion", "url": "https://farmart.test/blog/fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum." }, { "id": 3, "name": "Electronic", "slug": "electronic", "url": "https://farmart.test/blog/electronic", "description": "Qui rerum ut impedit dolorem odio. Magnam non cupiditate et soluta placeat a id voluptatem. Dolores totam enim eveniet deserunt et architecto magnam." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 7, "name": "Essential Qualities of Highly Successful Music", "slug": "essential-qualities-of-highly-successful-music", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/7.jpg", "categories": [ { "id": 2, "name": "Fashion", "slug": "fashion", "url": "https://farmart.test/blog/fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum." }, { "id": 3, "name": "Electronic", "slug": "electronic", "url": "https://farmart.test/blog/electronic", "description": "Qui rerum ut impedit dolorem odio. Magnam non cupiditate et soluta placeat a id voluptatem. Dolores totam enim eveniet deserunt et architecto magnam." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 8, "name": "9 Things I Love About Shaving My Head", "slug": "9-things-i-love-about-shaving-my-head", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/8.jpg", "categories": [ { "id": 1, "name": "Ecommerce", "slug": "ecommerce", "url": "https://farmart.test/blog/ecommerce", "description": "Qui dolores minus quia. Incidunt et et veniam sequi illum dolor. Quis rerum ullam harum ipsum voluptas eveniet." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 9, "name": "Why Teamwork Really Makes The Dream Work", "slug": "why-teamwork-really-makes-the-dream-work", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/9.jpg", "categories": [ { "id": 1, "name": "Ecommerce", "slug": "ecommerce", "url": "https://farmart.test/blog/ecommerce", "description": "Qui dolores minus quia. Incidunt et et veniam sequi illum dolor. Quis rerum ullam harum ipsum voluptas eveniet." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" }, { "id": 10, "name": "The World Caters to Average People", "slug": "the-world-caters-to-average-people", "description": "You should pay more attention when you choose your wallets. There are a lot of them on the market with the different designs and styles. When you choose carefully, you would be able to buy a wallet that is catered to your needs. Not to mention that it will help to enhance your style significantly.", "image": "https://farmart.test/storage/news/10.jpg", "categories": [ { "id": 2, "name": "Fashion", "slug": "fashion", "url": "https://farmart.test/blog/fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "tags": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "created_at": "2023-12-07T10:27:16.000000Z", "updated_at": "2023-12-07T10:27:16.000000Z" } ], "links": { "first": "https://farmart.test/api/v1/posts?page=1", "last": "https://farmart.test/api/v1/posts?page=2", "prev": null, "next": "https://farmart.test/api/v1/posts?page=2" }, "meta": { "current_page": 1, "from": 1, "last_page": 2, "links": [ { "url": null, "label": "&laquo; Previous", "active": false }, { "url": "https://farmart.test/api/v1/posts?page=1", "label": "1", "active": true }, { "url": "https://farmart.test/api/v1/posts?page=2", "label": "2", "active": false }, { "url": "https://farmart.test/api/v1/posts?page=2", "label": "Next &raquo;", "active": false } ], "path": "https://farmart.test/api/v1/posts", "per_page": 10, "to": 10, "total": 11 }, "error": false, "message": null }</code> </pre> </span> <span id="execution-results-GETapi-v1-posts" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-posts"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-posts" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-posts" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-posts"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-posts" data-method="GET" data-path="api/v1/posts" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-posts', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-posts" onclick="tryItOut('GETapi-v1-posts');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-posts" onclick="cancelTryOut('GETapi-v1-posts');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-posts" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/posts</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-posts" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-posts" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> </form> <h2 id="blog-GETapi-v1-categories">List categories</h2> <p> </p> <span id="example-requests-GETapi-v1-categories"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/categories" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/categories" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-categories"> <blockquote> <p>Example response (200):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 57 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "data": [ { "id": 4, "name": "Commercial", "slug": "commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae.", "children": [], "parent": { "id": null, "name": "", "slug": "", "url": "https://farmart.test", "description": "" } }, { "id": 3, "name": "Electronic", "slug": "electronic", "description": "Qui rerum ut impedit dolorem odio. Magnam non cupiditate et soluta placeat a id voluptatem. Dolores totam enim eveniet deserunt et architecto magnam.", "children": [], "parent": { "id": null, "name": "", "slug": "", "url": "https://farmart.test", "description": "" } }, { "id": 2, "name": "Fashion", "slug": "fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum.", "children": [], "parent": { "id": null, "name": "", "slug": "", "url": "https://farmart.test", "description": "" } }, { "id": 1, "name": "Ecommerce", "slug": "ecommerce", "description": "Qui dolores minus quia. Incidunt et et veniam sequi illum dolor. Quis rerum ullam harum ipsum voluptas eveniet.", "children": [], "parent": { "id": null, "name": "", "slug": "", "url": "https://farmart.test", "description": "" } } ], "links": { "first": "https://farmart.test/api/v1/categories?page=1", "last": "https://farmart.test/api/v1/categories?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "links": [ { "url": null, "label": "&laquo; Previous", "active": false }, { "url": "https://farmart.test/api/v1/categories?page=1", "label": "1", "active": true }, { "url": null, "label": "Next &raquo;", "active": false } ], "path": "https://farmart.test/api/v1/categories", "per_page": 10, "to": 4, "total": 4 }, "error": false, "message": null }</code> </pre> </span> <span id="execution-results-GETapi-v1-categories" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-categories"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-categories" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-categories" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-categories"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-categories" data-method="GET" data-path="api/v1/categories" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-categories', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-categories" onclick="tryItOut('GETapi-v1-categories');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-categories" onclick="cancelTryOut('GETapi-v1-categories');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-categories" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/categories</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-categories" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-categories" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> </form> <h2 id="blog-GETapi-v1-tags">List tags</h2> <p> </p> <span id="example-requests-GETapi-v1-tags"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/tags" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/tags" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-tags"> <blockquote> <p>Example response (200):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 56 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "data": [ { "id": 1, "name": "General", "slug": "general", "description": "" }, { "id": 2, "name": "Design", "slug": "design", "description": "" }, { "id": 3, "name": "Fashion", "slug": "fashion", "description": "" }, { "id": 4, "name": "Branding", "slug": "branding", "description": "" }, { "id": 5, "name": "Modern", "slug": "modern", "description": "" } ], "links": { "first": "https://farmart.test/api/v1/tags?page=1", "last": "https://farmart.test/api/v1/tags?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "links": [ { "url": null, "label": "&laquo; Previous", "active": false }, { "url": "https://farmart.test/api/v1/tags?page=1", "label": "1", "active": true }, { "url": null, "label": "Next &raquo;", "active": false } ], "path": "https://farmart.test/api/v1/tags", "per_page": 10, "to": 5, "total": 5 }, "error": false, "message": null }</code> </pre> </span> <span id="execution-results-GETapi-v1-tags" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-tags"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-tags" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-tags" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-tags"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-tags" data-method="GET" data-path="api/v1/tags" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-tags', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-tags" onclick="tryItOut('GETapi-v1-tags');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-tags" onclick="cancelTryOut('GETapi-v1-tags');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-tags" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/tags</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-tags" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-tags" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> </form> <h2 id="blog-GETapi-v1-posts-filters">Filters posts</h2> <p> </p> <span id="example-requests-GETapi-v1-posts-filters"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/posts/filters?page=19&per_page=13&search=voluptatum&after=amet&author=eveniet&author_exclude=eius&before=omnis&exclude=laudantium&include=consequatur&order=vero&order_by=magni&categories=quae&categories_exclude=est&tags=ab&tags_exclude=beatae&featured=consequatur" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/posts/filters" ); const params = { "page": "19", "per_page": "13", "search": "voluptatum", "after": "amet", "author": "eveniet", "author_exclude": "eius", "before": "omnis", "exclude": "laudantium", "include": "consequatur", "order": "vero", "order_by": "magni", "categories": "quae", "categories_exclude": "est", "tags": "ab", "tags_exclude": "beatae", "featured": "consequatur", }; Object.keys(params) .forEach(key => url.searchParams.append(key, params[key])); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-posts-filters"> <blockquote> <p>Example response (200):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 55 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "data": [], "links": { "first": "https://farmart.test/api/v1/posts/filters?page=1", "last": "https://farmart.test/api/v1/posts/filters?page=1", "prev": "https://farmart.test/api/v1/posts/filters?page=18", "next": null }, "meta": { "current_page": 19, "from": null, "last_page": 1, "links": [ { "url": "https://farmart.test/api/v1/posts/filters?page=18", "label": "&laquo; Previous", "active": false }, { "url": "https://farmart.test/api/v1/posts/filters?page=1", "label": "1", "active": false }, { "url": null, "label": "Next &raquo;", "active": false } ], "path": "https://farmart.test/api/v1/posts/filters", "per_page": 13, "to": null, "total": 0 }, "error": false, "message": null }</code> </pre> </span> <span id="execution-results-GETapi-v1-posts-filters" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-posts-filters"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-posts-filters" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-posts-filters" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-posts-filters"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-posts-filters" data-method="GET" data-path="api/v1/posts/filters" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-posts-filters', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-posts-filters" onclick="tryItOut('GETapi-v1-posts-filters');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-posts-filters" onclick="cancelTryOut('GETapi-v1-posts-filters');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-posts-filters" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/posts/filters</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-posts-filters" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-posts-filters" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <h4 class="fancy-heading-panel"><b>Query Parameters</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>page</code></b> <small>integer</small> <i>optional</i> <input type="number" style="display: none" step="any" name="page" data-endpoint="GETapi-v1-posts-filters" value="19" data-component="query"> <br> <p>Current page of the collection. Default: 1 Example: <code>19</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>per_page</code></b> <small>integer</small> <i>optional</i> <input type="number" style="display: none" step="any" name="per_page" data-endpoint="GETapi-v1-posts-filters" value="13" data-component="query"> <br> <p>Maximum number of items to be returned in result set.Default: 10 Example: <code>13</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>search</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="search" data-endpoint="GETapi-v1-posts-filters" value="voluptatum" data-component="query"> <br> <p>Limit results to those matching a string. Example: <code>voluptatum</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>after</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="after" data-endpoint="GETapi-v1-posts-filters" value="amet" data-component="query"> <br> <p>Limit response to posts published after a given ISO8601 compliant date. Example: <code>amet</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>author</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="author" data-endpoint="GETapi-v1-posts-filters" value="eveniet" data-component="query"> <br> <p>Limit result set to posts assigned to specific authors. Example: <code>eveniet</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>author_exclude</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="author_exclude" data-endpoint="GETapi-v1-posts-filters" value="eius" data-component="query"> <br> <p>Ensure result set excludes posts assigned to specific authors. Example: <code>eius</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>before</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="before" data-endpoint="GETapi-v1-posts-filters" value="omnis" data-component="query"> <br> <p>Limit response to posts published before a given ISO8601 compliant date. Example: <code>omnis</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>exclude</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="exclude" data-endpoint="GETapi-v1-posts-filters" value="laudantium" data-component="query"> <br> <p>Ensure result set excludes specific IDs. Example: <code>laudantium</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>include</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="include" data-endpoint="GETapi-v1-posts-filters" value="consequatur" data-component="query"> <br> <p>Limit result set to specific IDs. Example: <code>consequatur</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>order</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="order" data-endpoint="GETapi-v1-posts-filters" value="vero" data-component="query"> <br> <p>Order sort attribute ascending or descending. Default: desc .One of: asc, desc Example: <code>vero</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>order_by</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="order_by" data-endpoint="GETapi-v1-posts-filters" value="magni" data-component="query"> <br> <p>Sort collection by object attribute. Default: updated_at. One of: author, created_at, updated_at, id, slug, title Example: <code>magni</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>categories</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="categories" data-endpoint="GETapi-v1-posts-filters" value="quae" data-component="query"> <br> <p>Limit result set to all items that have the specified term assigned in the categories taxonomy. Example: <code>quae</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>categories_exclude</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="categories_exclude" data-endpoint="GETapi-v1-posts-filters" value="est" data-component="query"> <br> <p>Limit result set to all items except those that have the specified term assigned in the categories taxonomy. Example: <code>est</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>tags</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="tags" data-endpoint="GETapi-v1-posts-filters" value="ab" data-component="query"> <br> <p>Limit result set to all items that have the specified term assigned in the tags taxonomy. Example: <code>ab</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>tags_exclude</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="tags_exclude" data-endpoint="GETapi-v1-posts-filters" value="beatae" data-component="query"> <br> <p>Limit result set to all items except those that have the specified term assigned in the tags taxonomy. Example: <code>beatae</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>featured</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="featured" data-endpoint="GETapi-v1-posts-filters" value="consequatur" data-component="query"> <br> <p>Limit result set to items that are sticky. Example: <code>consequatur</code></p> </div> </form> <h2 id="blog-GETapi-v1-posts--slug-">Get post by slug</h2> <p> </p> <span id="example-requests-GETapi-v1-posts--slug-"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/posts/aut?slug=dicta" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/posts/aut" ); const params = { "slug": "dicta", }; Object.keys(params) .forEach(key => url.searchParams.append(key, params[key])); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-posts--slug-"> <blockquote> <p>Example response (404):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 54 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "error": true, "data": null, "message": "Not found" }</code> </pre> </span> <span id="execution-results-GETapi-v1-posts--slug-" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-posts--slug-"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-posts--slug-" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-posts--slug-" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-posts--slug-"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-posts--slug-" data-method="GET" data-path="api/v1/posts/{slug}" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-posts--slug-', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-posts--slug-" onclick="tryItOut('GETapi-v1-posts--slug-');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-posts--slug-" onclick="cancelTryOut('GETapi-v1-posts--slug-');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-posts--slug-" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/posts/{slug}</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-posts--slug-" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-posts--slug-" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <h4 class="fancy-heading-panel"><b>URL Parameters</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>slug</code></b> <small>string</small> <input type="text" style="display: none" name="slug" data-endpoint="GETapi-v1-posts--slug-" value="aut" data-component="url"> <br> <p>The slug of the post. Example: <code>aut</code></p> </div> <h4 class="fancy-heading-panel"><b>Query Parameters</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>slug</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="slug" data-endpoint="GETapi-v1-posts--slug-" value="dicta" data-component="query"> <br> <p>Find by slug of post. Example: <code>dicta</code></p> </div> </form> <h2 id="blog-GETapi-v1-categories-filters">Filters categories</h2> <p> </p> <span id="example-requests-GETapi-v1-categories-filters"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/categories/filters" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/categories/filters" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-categories-filters"> <blockquote> <p>Example response (200):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 53 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "data": [ { "id": 2, "name": "Fashion", "slug": "fashion", "url": "https://farmart.test/blog/fashion", "description": "Enim accusamus aut porro animi. Reprehenderit et vero perferendis earum quisquam quidem. Facere iste atque ipsum." }, { "id": 3, "name": "Electronic", "slug": "electronic", "url": "https://farmart.test/blog/electronic", "description": "Qui rerum ut impedit dolorem odio. Magnam non cupiditate et soluta placeat a id voluptatem. Dolores totam enim eveniet deserunt et architecto magnam." }, { "id": 1, "name": "Ecommerce", "slug": "ecommerce", "url": "https://farmart.test/blog/ecommerce", "description": "Qui dolores minus quia. Incidunt et et veniam sequi illum dolor. Quis rerum ullam harum ipsum voluptas eveniet." }, { "id": 4, "name": "Commercial", "slug": "commercial", "url": "https://farmart.test/blog/commercial", "description": "Porro quia ipsa quidem laborum dolor. Quia ut eum dolores. In debitis illo ut. Possimus dolores dicta vel quae." } ], "links": { "first": "https://farmart.test/api/v1/categories/filters?page=1", "last": "https://farmart.test/api/v1/categories/filters?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "links": [ { "url": null, "label": "&laquo; Previous", "active": false }, { "url": "https://farmart.test/api/v1/categories/filters?page=1", "label": "1", "active": true }, { "url": null, "label": "Next &raquo;", "active": false } ], "path": "https://farmart.test/api/v1/categories/filters", "per_page": 10, "to": 4, "total": 4 }, "error": false, "message": null }</code> </pre> </span> <span id="execution-results-GETapi-v1-categories-filters" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-categories-filters"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-categories-filters" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-categories-filters" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-categories-filters"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-categories-filters" data-method="GET" data-path="api/v1/categories/filters" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-categories-filters', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-categories-filters" onclick="tryItOut('GETapi-v1-categories-filters');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-categories-filters" onclick="cancelTryOut('GETapi-v1-categories-filters');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-categories-filters" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/categories/filters</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-categories-filters" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-categories-filters" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> </form> <h2 id="blog-GETapi-v1-categories--slug-">Get category by slug</h2> <p> </p> <span id="example-requests-GETapi-v1-categories--slug-"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/categories/sit?slug=quisquam" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/categories/sit" ); const params = { "slug": "quisquam", }; Object.keys(params) .forEach(key => url.searchParams.append(key, params[key])); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-categories--slug-"> <blockquote> <p>Example response (404):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private content-type: application/json x-ratelimit-limit: 60 x-ratelimit-remaining: 52 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;">{ "error": true, "data": null, "message": "Not found" }</code> </pre> </span> <span id="execution-results-GETapi-v1-categories--slug-" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-categories--slug-"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-categories--slug-" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-categories--slug-" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-categories--slug-"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-categories--slug-" data-method="GET" data-path="api/v1/categories/{slug}" data-authed="0" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-categories--slug-', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-categories--slug-" onclick="tryItOut('GETapi-v1-categories--slug-');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-categories--slug-" onclick="cancelTryOut('GETapi-v1-categories--slug-');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-categories--slug-" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/categories/{slug}</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" data-endpoint="GETapi-v1-categories--slug-" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-categories--slug-" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <h4 class="fancy-heading-panel"><b>URL Parameters</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>slug</code></b> <small>string</small> <input type="text" style="display: none" name="slug" data-endpoint="GETapi-v1-categories--slug-" value="sit" data-component="url"> <br> <p>The slug of the category. Example: <code>sit</code></p> </div> <h4 class="fancy-heading-panel"><b>Query Parameters</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>slug</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="slug" data-endpoint="GETapi-v1-categories--slug-" value="quisquam" data-component="query"> <br> <p>Find by slug of category. Example: <code>quisquam</code></p> </div> </form> <h1 id="profile">Profile</h1> <h2 id="profile-GETapi-v1-me">Get the user profile information.</h2> <p> <small class="badge badge-darkred">requires authentication</small> </p> <span id="example-requests-GETapi-v1-me"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request GET \ --get "https://farmart.test/api/v1/me" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1"</code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/me" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Accept": "application/json", }; fetch(url, { method: "GET", headers, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-GETapi-v1-me"> <blockquote> <p>Example response (302):</p> </blockquote> <details class="annotation"> <summary style="cursor: pointer;"> <small onclick="textContent = parentElement.parentElement.open ? 'Show headers' : 'Hide headers'">Show headers</small> </summary> <pre><code class="language-http">cache-control: no-cache, private location: https://farmart.test/login content-type: text/html; charset=UTF-8 access-control-allow-origin: * </code></pre></details> <pre> <code class="language-json" style="max-height: 300px;"><!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="0;url='https://farmart.test/login'" /> <title>Redirecting to https://farmart.test/login</title> </head> <body> Redirecting to <a href="https://farmart.test/login">https://farmart.test/login</a>. </body> </html></code> </pre> </span> <span id="execution-results-GETapi-v1-me" hidden> <blockquote>Received response<span id="execution-response-status-GETapi-v1-me"></span>: </blockquote> <pre class="json"><code id="execution-response-content-GETapi-v1-me" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-GETapi-v1-me" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-GETapi-v1-me"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-GETapi-v1-me" data-method="GET" data-path="api/v1/me" data-authed="1" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('GETapi-v1-me', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETapi-v1-me" onclick="tryItOut('GETapi-v1-me');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETapi-v1-me" onclick="cancelTryOut('GETapi-v1-me');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETapi-v1-me" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-green">GET</small> <b><code>api/v1/me</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" class="auth-value" data-endpoint="GETapi-v1-me" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="GETapi-v1-me" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> </form> <h2 id="profile-PUTapi-v1-me">Update profile</h2> <p> <small class="badge badge-darkred">requires authentication</small> </p> <span id="example-requests-PUTapi-v1-me"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request PUT \ "https://farmart.test/api/v1/me" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: application/json" \ --data "{ \"first_name\": \"est\", \"last_name\": \"voluptatibus\", \"phone\": \"beatae\", \"dob\": \"eligendi\", \"gender\": \"culpa\", \"description\": \"Quaerat illo et omnis perspiciatis.\", \"email\": \"deckow.percy@example.org\" }" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/me" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "application/json", "Accept": "application/json", }; let body = { "first_name": "est", "last_name": "voluptatibus", "phone": "beatae", "dob": "eligendi", "gender": "culpa", "description": "Quaerat illo et omnis perspiciatis.", "email": "deckow.percy@example.org" }; fetch(url, { method: "PUT", headers, body: JSON.stringify(body), }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-PUTapi-v1-me"> </span> <span id="execution-results-PUTapi-v1-me" hidden> <blockquote>Received response<span id="execution-response-status-PUTapi-v1-me"></span>: </blockquote> <pre class="json"><code id="execution-response-content-PUTapi-v1-me" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-PUTapi-v1-me" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-PUTapi-v1-me"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-PUTapi-v1-me" data-method="PUT" data-path="api/v1/me" data-authed="1" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('PUTapi-v1-me', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-PUTapi-v1-me" onclick="tryItOut('PUTapi-v1-me');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-PUTapi-v1-me" onclick="cancelTryOut('PUTapi-v1-me');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-PUTapi-v1-me" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-darkblue">PUT</small> <b><code>api/v1/me</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" class="auth-value" data-endpoint="PUTapi-v1-me" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="PUTapi-v1-me" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="PUTapi-v1-me" value="application/json" data-component="header"> <br> <p>Example: <code>application/json</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>first_name</code></b> <small>string</small> <input type="text" style="display: none" name="first_name" data-endpoint="PUTapi-v1-me" value="est" data-component="body"> <br> <p>First name. Example: <code>est</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>last_name</code></b> <small>string</small> <input type="text" style="display: none" name="last_name" data-endpoint="PUTapi-v1-me" value="voluptatibus" data-component="body"> <br> <p>Last name. Example: <code>voluptatibus</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>phone</code></b> <small>string</small> <input type="text" style="display: none" name="phone" data-endpoint="PUTapi-v1-me" value="beatae" data-component="body"> <br> <p>Phone. Example: <code>beatae</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>dob</code></b> <small>string</small> <input type="text" style="display: none" name="dob" data-endpoint="PUTapi-v1-me" value="eligendi" data-component="body"> <br> <p>Date of birth. Example: <code>eligendi</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>gender</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="gender" data-endpoint="PUTapi-v1-me" value="culpa" data-component="body"> <br> <p>Gender Example: <code>culpa</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>description</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="description" data-endpoint="PUTapi-v1-me" value="Quaerat illo et omnis perspiciatis." data-component="body"> <br> <p>Description Example: <code>Quaerat illo et omnis perspiciatis.</code></p> </div> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>email</code></b> <small>string</small> <i>optional</i> <input type="text" style="display: none" name="email" data-endpoint="PUTapi-v1-me" value="deckow.percy@example.org" data-component="body"> <br> <p>Email. Example: <code>deckow.percy@example.org</code></p> </div> </form> <h2 id="profile-POSTapi-v1-update-avatar">Update Avatar</h2> <p> <small class="badge badge-darkred">requires authentication</small> </p> <span id="example-requests-POSTapi-v1-update-avatar"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request POST \ "https://farmart.test/api/v1/update/avatar" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: multipart/form-data" \ --form "avatar=@/private/var/folders/h4/7j56n3vs11179mptv1t37ld40000gn/T/phpYSpuhe" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/update/avatar" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "multipart/form-data", "Accept": "application/json", }; const body = new FormData(); body.append('avatar', document.querySelector('input[name="avatar"]').files[0]); fetch(url, { method: "POST", headers, body, }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-POSTapi-v1-update-avatar"> </span> <span id="execution-results-POSTapi-v1-update-avatar" hidden> <blockquote>Received response<span id="execution-response-status-POSTapi-v1-update-avatar"></span>: </blockquote> <pre class="json"><code id="execution-response-content-POSTapi-v1-update-avatar" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-POSTapi-v1-update-avatar" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-POSTapi-v1-update-avatar"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-POSTapi-v1-update-avatar" data-method="POST" data-path="api/v1/update/avatar" data-authed="1" data-hasfiles="1" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('POSTapi-v1-update-avatar', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTapi-v1-update-avatar" onclick="tryItOut('POSTapi-v1-update-avatar');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTapi-v1-update-avatar" onclick="cancelTryOut('POSTapi-v1-update-avatar');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTapi-v1-update-avatar" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-black">POST</small> <b><code>api/v1/update/avatar</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" class="auth-value" data-endpoint="POSTapi-v1-update-avatar" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="POSTapi-v1-update-avatar" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="POSTapi-v1-update-avatar" value="multipart/form-data" data-component="header"> <br> <p>Example: <code>multipart/form-data</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>avatar</code></b> <small>file</small> <input type="file" style="display: none" name="avatar" data-endpoint="POSTapi-v1-update-avatar" value="" data-component="body"> <br> <p>Avatar file. Example: <code>/private/var/folders/h4/7j56n3vs11179mptv1t37ld40000gn/T/phpYSpuhe</code></p> </div> </form> <h2 id="profile-PUTapi-v1-update-password">Update password</h2> <p> <small class="badge badge-darkred">requires authentication</small> </p> <span id="example-requests-PUTapi-v1-update-password"> <blockquote>Example request:</blockquote> <div class="bash-example"> <pre><code class="language-bash">curl --request PUT \ "https://farmart.test/api/v1/update/password" \ --header "Authorization: Bearer {token}" \ --header "Api-Version: v1" \ --header "Content-Type: application/json" \ --data "{ \"password\": \"n`5;$T~I>;\" }" </code></pre></div> <div class="javascript-example"> <pre><code class="language-javascript">const url = new URL( "https://farmart.test/api/v1/update/password" ); const headers = { "Authorization": "Bearer {token}", "Api-Version": "v1", "Content-Type": "application/json", "Accept": "application/json", }; let body = { "password": "n`5;$T~I>;" }; fetch(url, { method: "PUT", headers, body: JSON.stringify(body), }).then(response => response.json());</code></pre></div> </span> <span id="example-responses-PUTapi-v1-update-password"> </span> <span id="execution-results-PUTapi-v1-update-password" hidden> <blockquote>Received response<span id="execution-response-status-PUTapi-v1-update-password"></span>: </blockquote> <pre class="json"><code id="execution-response-content-PUTapi-v1-update-password" data-empty-response-text="<Empty response>" style="max-height: 400px;"></code></pre> </span> <span id="execution-error-PUTapi-v1-update-password" hidden> <blockquote>Request failed with error:</blockquote> <pre><code id="execution-error-message-PUTapi-v1-update-password"> Tip: Check that you're properly connected to the network. If you're a maintainer of ths API, verify that your API is running and you've enabled CORS. You can check the Dev Tools console for debugging information.</code></pre> </span> <form id="form-PUTapi-v1-update-password" data-method="PUT" data-path="api/v1/update/password" data-authed="1" data-hasfiles="0" data-isarraybody="0" autocomplete="off" onsubmit="event.preventDefault(); executeTryOut('PUTapi-v1-update-password', this);"> <h3> Request <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-PUTapi-v1-update-password" onclick="tryItOut('PUTapi-v1-update-password');">Try it out ⚡ </button> <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-PUTapi-v1-update-password" onclick="cancelTryOut('PUTapi-v1-update-password');" hidden>Cancel 🛑 </button> <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-PUTapi-v1-update-password" data-initial-text="Send Request 💥" data-loading-text="⏱ Sending..." hidden>Send Request 💥 </button> </h3> <p> <small class="badge badge-darkblue">PUT</small> <b><code>api/v1/update/password</code></b> </p> <h4 class="fancy-heading-panel"><b>Headers</b></h4> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Authorization</code></b> <input type="text" style="display: none" name="Authorization" class="auth-value" data-endpoint="PUTapi-v1-update-password" value="Bearer {token}" data-component="header"> <br> <p>Example: <code>Bearer {token}</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Api-Version</code></b> <input type="text" style="display: none" name="Api-Version" data-endpoint="PUTapi-v1-update-password" value="v1" data-component="header"> <br> <p>Example: <code>v1</code></p> </div> <div style="padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>Content-Type</code></b> <input type="text" style="display: none" name="Content-Type" data-endpoint="PUTapi-v1-update-password" value="application/json" data-component="header"> <br> <p>Example: <code>application/json</code></p> </div> <h4 class="fancy-heading-panel"><b>Body Parameters</b></h4> <div style=" padding-left: 28px; clear: unset;"> <b style="line-height: 2;"><code>password</code></b> <small>string</small> <input type="text" style="display: none" name="password" data-endpoint="PUTapi-v1-update-password" value="n`5;$T~I>;" data-component="body"> <br> <p>The new password of user. Example: <code>n</code>5;$T~I>;`</p> </div> </form> </div> <div class="dark-box"> <div class="lang-selector"> <button type="button" class="lang-button" data-language-name="bash">bash</button> <button type="button" class="lang-button" data-language-name="javascript">javascript</button> </div> </div> </div> </body> </html>