-
Notifications
You must be signed in to change notification settings - Fork 2
/
apinotes
79 lines (54 loc) · 2.35 KB
/
apinotes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
parse_ini_file("test.ini",true)
../vimbadmin/application/configs/application.ini
parse_ini_file("../vimbadmin/application/configs/application.ini",true)
Verb Path Action Route Name
GET /photo index photo.index
GET /photo/create create photo.create
POST /photo store photo.store
GET /photo/{photo} show photo.show
GET /photo/{photo}/edit edit photo.edit
PUT/PATCH /photo/{photo} update photo.update
DELETE /photo/{photo}
baseurl
https://api.vba.lwk.me/
domains
mailboxes
aliases
/domains/
/{domain}/mailboxes
/{dommin}/mailboxes/{mailbox}/aliases/
/{domain}/aliases/
/**
* Register a resource with the application.
*
* @param string $uri
* @param mixed $controller
* @return $this
*/
public function resource($uri, $controller)
{
$this->get($uri, 'App\Http\Controllers\\'.$controller.'@index');
$this->get($uri.'/create', 'App\Http\Controllers\\'.$controller.'@create');
$this->post($uri, 'App\Http\Controllers\\'.$controller.'@store');
$this->get($uri.'/{id}', 'App\Http\Controllers\\'.$controller.'@show');
$this->get($uri.'/{id}/edit', 'App\Http\Controllers\\'.$controller.'@edit');
$this->put($uri.'/{id}', 'App\Http\Controllers\\'.$controller.'@update');
$this->patch($uri.'/{id}', 'App\Http\Controllers\\'.$controller.'@update');
$this->delete($uri.'/{id}', 'App\Http\Controllers\\'.$controller.'@destroy');
return $this;
}
GET|HEAD | api/test | test.index | App\Http\Controllers\Test@index | api
POST | api/test | test.store | App\Http\Controllers\Test@store | api
GET|HEAD | api/test/create | test.create | App\Http\Controllers\Test@create | api
DELETE | api/test/{test} | test.destroy | App\Http\Controllers\Test@destroy | api
PUT|PATCH | api/test/{test} | test.update | App\Http\Controllers\Test@update | api
GET|HEAD | api/test/{test} | test.show | App\Http\Controllers\Test@show | api
GET|HEAD | api/test/{test}/edit | test.edit | App\Http\Controllers\Test@edit | api
spatie/laravel-fractal
dusterio/lumen-passport
appzcoder/lumen-routes-list
$app->register(Appzcoder\LumenRoutesList\RoutesCommandServiceProvider::class);
$bearerToken=$request->bearerToken();
$tokenId= (new Parser())->parse($bearerToken)->getHeader('jti');
$client = Token::find($tokenId);
dd($client->can('place-orders'));