You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/1.x/api/getting-started-with-the-api.md
+12-31Lines changed: 12 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,17 @@
2
2
3
3
[[toc]]
4
4
5
-
## REST API
5
+
###REST API
6
6
7
7
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.
8
8
9
-
##Explore REST API Demo
9
+
###Demo
10
10
11
11
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:
12
12
13
13
[Access API Demo](https://demo.krayincrm.com/krayin-rest-api/)
14
14
15
-
#### Click the Link below to access Admin API documentation
15
+
#### Click the Link below to access Admin API documentation
@@ -22,45 +22,26 @@ To install Krayin REST API, you need to follow some steps.
22
22
23
23
- To install Krayin REST API from your console:
24
24
25
-
~~~
25
+
```
26
26
composer require krayin/rest-api
27
-
~~~
27
+
```
28
28
29
29
- Add below options in the .env file (i.e. http://localhost/public your domain):
30
30
31
-
~~~
31
+
```
32
32
SANCTUM_STATEFUL_DOMAINS=http://localhost/public
33
-
~~~
33
+
```
34
34
35
35
- To configure the REST API L5-Swagger Documentation run below command:
36
36
37
-
~~~
37
+
```
38
38
php artisan krayin-rest-api:install
39
-
~~~
39
+
```
40
40
41
41
- To check the Admin end API documentation:
42
42
43
-
~~~
43
+
```
44
44
http://localhost/public/api/admin/documentation
45
-
~~~
45
+
```
46
46
47
-
* You can check the <ahref="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 <ahref="https://github.com/DarkaOnLine/L5-Swagger"> L5-Swagger </a> guidelines too regarding the configuration the API documentation.
Copy file name to clipboardExpand all lines: docs/2.0/api/getting-started-with-the-api.md
+2-20Lines changed: 2 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
[[toc]]
4
4
5
-
## REST API
5
+
###REST API
6
6
7
7
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.
8
8
9
-
##Explore REST API Demo
9
+
###Demo
10
10
11
11
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:
* You can check the <ahref="https://github.com/DarkaOnLine/L5-Swagger"> L5-Swagger </a> guidelines too regarding the configuration the API documentation.
48
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
0 commit comments