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
# [Laravel API Server](https://docs.appseed.us/boilerplate-code/api-server/laravel)
5
3
6
-
Simple starter built with PHP (Laravel), Sqlite3 and JWT.
4
+
Simple Laravel API Server with JWT authentication, and **SQLite** persistance - Provided by **AppSeed**[App Generator](https://appseed.us)and [UPDIVISION](https://updivision.com/?ref=appseed)
7
5
8
-
## ✨ Requirements
6
+
7
+
<br />
8
+
9
+
> Features:
10
+
11
+
-[API Definition](https://docs.appseed.us/boilerplate-code/api-unified-definition) - the unified API structure implemented by this server
12
+
- Simple, intuitive codebase - can be extended with ease.
13
+
-**Stack**: PHP 7.4+ / Laravel / Doctrine
14
+
- JWT Authentication
15
+
16
+
<br />
17
+
18
+
> Can be used with other [React Starters](https://appseed.us/apps/react) for a complete **Full-Stack** experience:

27
+
28
+
<br />
29
+
30
+
## Requirements
9
31
10
32
- PHP 7.4+
11
33
- Extensions (check the #Troubleshooting section for installation info)
For a fast set up, use this POSTMAN file: [api_sample](https://github.com/app-generator/api-server-nodejs-pro/blob/master/media/api.postman_collection.json)
113
+
114
+
> **Register** - `api/users/register`
115
+
116
+
```
117
+
POST api/users/register
118
+
Content-Type: application/json
119
+
120
+
{
121
+
"username":"test",
122
+
"password":"pass",
123
+
"email":"test@appseed.us"
124
+
}
125
+
```
126
+
127
+
<br />
128
+
129
+
> **Login** - `api/users/login`
130
+
131
+
```
132
+
POST /api/users/login
133
+
Content-Type: application/json
134
+
135
+
{
136
+
"password":"pass",
137
+
"email":"test@appseed.us"
138
+
}
139
+
```
140
+
141
+
<br />
142
+
143
+
> **Logout** - `api/users/logout`
144
+
145
+
```
146
+
POST api/users/logout
147
+
Content-Type: application/json
148
+
authorization: JWT_TOKEN (returned by Login request)
149
+
150
+
{
151
+
"token":"JWT_TOKEN"
152
+
}
153
+
```
154
+
155
+
<br />
156
+
63
157
---
64
-
Laravel API Server - provided by UPDIVISION and [App Generator](https://updivision.com/)
158
+
**[Laravel API Server](https://docs.appseed.us/boilerplate-code/api-server/laravel)** - provided by AppSeed [App Generator](https://appseed.us)
0 commit comments