Skip to content

Commit

Permalink
Merge pull request #371 from shivendra-webkul/update-api
Browse files Browse the repository at this point in the history
Updated api page remove token registration
  • Loading branch information
devansh-webkul authored Feb 9, 2024
2 parents 12c92ad + b84517d commit 9bbe267
Showing 1 changed file with 1 addition and 50 deletions.
51 changes: 1 addition & 50 deletions docs/2.x/api/getting-started-with-the-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ Bagisto REST API is a medium to use the features of the core Bagisto System. By

Welcome to our API demo! Dive into the interactive showcase of our API functionalities to get a hands-on experience of how our platform works. Click the Link below to access the demo:

[Access API Demo](https://demo.bagisto.com/bagisto-api-demo-common)

#### Click the Link below to access Admin OR Shop API documentation

[Admin](https://demo.bagisto.com/bagisto-api-demo-common/api/admin/documentation)

[Shop](https://demo.bagisto.com/bagisto-api-demo-common/api/shop/documentation)

[Access REST API Demo](https://demo.bagisto.com/bagisto-api-demo/)

#### Installation of REST API

Expand Down Expand Up @@ -54,45 +47,3 @@ http://localhost/public/api/shop/documentation
~~~

* You can check the <a href="https://github.com/DarkaOnLine/L5-Swagger"> L5-Swagger </a> guidelines too regarding the configuration the API documentation.

- For admin login

* To add Laravel Sanctum's API token to the Admin model follow the given path.

~~~
packages/Webkul/User/src/Models/Admin.php
~~~

~~~php
<?php
namespace Webkul\User\Models;

use Laravel\Sanctum\HasApiTokens;

class Admin extends Authenticatable implements AdminContract
{
use HasApiTokens;
...
}
~~~

- For customer login

* To add Laravel Sanctum's API token to the customer model follow the given path.

~~~
packages/Webkul/Customer/src/Models/Customer.php
~~~

~~~php
<?php
namespace Webkul\Customer\Models;

use Laravel\Sanctum\HasApiTokens;

class Customer extends Authenticatable implements CustomerContract
{
use HasApiTokens;
...
}
~~~

0 comments on commit 9bbe267

Please sign in to comment.