Skip to content

Commit ccbc69f

Browse files
Merge pull request #43 from suraj-webkul/remove-unused-docs-part
remove redundant admin login instructions from API documentation
2 parents 6817e9a + c2674b5 commit ccbc69f

File tree

16 files changed

+22
-113
lines changed

16 files changed

+22
-113
lines changed

docs/.vuepress/version-configs/1.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports = [
8181
path: setVersionPrefix('api'),
8282
collapsable: true,
8383
children: setVersionPrefix([
84-
['api/getting-started-with-the-api', 'Rest API'],
84+
['api/getting-started-with-the-api', 'Explore REST API'],
8585
]),
8686
},
8787
];

docs/.vuepress/version-configs/2.0.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module.exports = [
9292
path: setVersionPrefix('api'),
9393
collapsable: true,
9494
children: setVersionPrefix([
95-
['api/getting-started-with-the-api', 'Rest API'],
95+
['api/getting-started-with-the-api', 'Explore REST API'],
9696
]),
9797
},
9898
];

docs/.vuepress/version-configs/2.1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = [
9494
path: setVersionPrefix('api'),
9595
collapsable: true,
9696
children: setVersionPrefix([
97-
['api/getting-started-with-the-api', 'Rest API'],
97+
['api/getting-started-with-the-api', 'Explore REST API'],
9898
]),
9999
},
100100
];

docs/.vuepress/version-configs/master.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = [
9494
path: setVersionPrefix('api'),
9595
collapsable: true,
9696
children: setVersionPrefix([
97-
['api/getting-started-with-the-api', 'Rest API'],
97+
['api/getting-started-with-the-api', 'Explore REST API'],
9898
]),
9999
},
100100
];

docs/1.x/advanced/events.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<!-- @format -->
2-
31
# Events
42

53
[[TOC]]

docs/1.x/api/getting-started-with-the-api.md

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
[[toc]]
44

5-
## REST API
5+
### REST API
66

77
Krayin REST API is a medium to use the features of the core Krayin System. By using Krayin REST API, you can integrate your application to serve the default content of Krayin.
88

9-
## Explore REST API Demo
9+
### Demo
1010

1111
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:
1212

1313
[Access API Demo](https://demo.krayincrm.com/krayin-rest-api/)
1414

15-
#### Click the Link below to access Admin API documentation
15+
#### Click the Link below to access Admin API documentation
1616

1717
[Admin](https://demo.krayincrm.com/krayin-rest-api-24046b004402/api/documentation)
1818

@@ -22,45 +22,26 @@ To install Krayin REST API, you need to follow some steps.
2222

2323
- To install Krayin REST API from your console:
2424

25-
~~~
25+
```
2626
composer require krayin/rest-api
27-
~~~
27+
```
2828

2929
- Add below options in the .env file (i.e. http://localhost/public your domain):
3030

31-
~~~
31+
```
3232
SANCTUM_STATEFUL_DOMAINS=http://localhost/public
33-
~~~
33+
```
3434

3535
- To configure the REST API L5-Swagger Documentation run below command:
3636

37-
~~~
37+
```
3838
php artisan krayin-rest-api:install
39-
~~~
39+
```
4040

4141
- To check the Admin end API documentation:
4242

43-
~~~
43+
```
4444
http://localhost/public/api/admin/documentation
45-
~~~
45+
```
4646

47-
* You can check the <a href="https://github.com/DarkaOnLine/L5-Swagger"> L5-Swagger </a> guidelines too regarding the configuration the API documentation.
48-
49-
- For admin login, add Laravel Sanctum's API token to the Admin model follow the given path.
50-
51-
~~~
52-
packages/Webkul/User/src/Models/Admin.php
53-
~~~
54-
55-
~~~php
56-
<?php
57-
namespace Webkul\User\Models;
58-
59-
use Laravel\Sanctum\HasApiTokens;
60-
61-
class Admin extends Authenticatable implements AdminContract
62-
{
63-
use HasApiTokens;
64-
...
65-
}
66-
~~~
47+
- You can check the <a href="https://github.com/DarkaOnLine/L5-Swagger"> L5-Swagger </a> guidelines too regarding the configuration the API documentation.

docs/2.0/advanced/events.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<!-- @format -->
2-
31
# Events
42

53
[[TOC]]

docs/2.0/api/getting-started-with-the-api.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
[[toc]]
44

5-
## REST API
5+
### REST API
66

77
Krayin REST API is a medium to use the features of the core Krayin System. By using Krayin REST API, you can integrate your application to serve the default content of Krayin.
88

9-
## Explore REST API Demo
9+
### Demo
1010

1111
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:
1212

@@ -46,21 +46,3 @@ http://localhost/public/api/admin/documentation
4646

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

49-
- For admin login, add Laravel Sanctum's API token to the Admin model follow the given path.
50-
51-
~~~
52-
packages/Webkul/User/src/Models/Admin.php
53-
~~~
54-
55-
~~~php
56-
<?php
57-
namespace Webkul\User\Models;
58-
59-
use Laravel\Sanctum\HasApiTokens;
60-
61-
class Admin extends Authenticatable implements AdminContract
62-
{
63-
use HasApiTokens;
64-
...
65-
}
66-
~~~

docs/2.1/advanced/ai-powered-lead-generation.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<!-- @format -->
2-
31
[[TOC]]
42

53
# AI-Powered Lead Generation

docs/2.1/advanced/events.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<!-- @format -->
2-
31
# Events
42

53
[[TOC]]

0 commit comments

Comments
 (0)