Commit 2f4aeec4cba3a16e09b5397bc3cab7cfad7d5c4e
1 parent
f0b7c788b0
Exists in
master
and in
2 other branches
Added GET endpoints for XLSIEM, VDM
Showing 3 changed files with 29 additions and 0 deletions
api/app/Http/Controllers/V1/Partners/VdmController.php
View file @
2f4aeec
... | ... | @@ -30,5 +30,15 @@ |
30 | 30 | DB::table('vdm')->insert($records); |
31 | 31 | return response()->json(['success' => 'success'], 200); |
32 | 32 | } |
33 | + | |
34 | + public function get() | |
35 | + { | |
36 | + return DB::table('vdm')->select([ | |
37 | + 'uuid', | |
38 | + 'time', | |
39 | + 'asset_id', | |
40 | + 'value', | |
41 | + ])->paginate(20); | |
42 | + } | |
33 | 43 | } |
api/app/Http/Controllers/V1/Partners/XlsiemController.php
View file @
2f4aeec
... | ... | @@ -50,5 +50,22 @@ |
50 | 50 | |
51 | 51 | return response()->json(['success' => 'success'], 200); |
52 | 52 | } |
53 | + | |
54 | + public function get() | |
55 | + { | |
56 | + return DB::table('xlsiem')->select([ | |
57 | + 'asset_id', | |
58 | + 'event_alarm_id', | |
59 | + 'event_alarm_char', | |
60 | + 'name', | |
61 | + 'time', | |
62 | + 'source_ip', | |
63 | + 'source_port', | |
64 | + 'destination_ip', | |
65 | + 'destination_port', | |
66 | + 'priority', | |
67 | + 'confidence', | |
68 | + ])->paginate(20); | |
69 | + } | |
53 | 70 | } |
api/routes/api.php
View file @
2f4aeec
... | ... | @@ -22,7 +22,9 @@ |
22 | 22 | |
23 | 23 | Route::get('adt', 'V1\Partners\AdtController@get'); |
24 | 24 | Route::post('adt', 'V1\Partners\AdtController@store'); |
25 | + Route::get('xlsiem', 'V1\Partners\XlsiemController@get'); | |
25 | 26 | Route::post('xlsiem', 'V1\Partners\XlsiemController@store'); |
27 | + Route::get('vdm', 'V1\Partners\VdmController@get'); | |
26 | 28 | Route::post('vdm', 'V1\Partners\VdmController@store'); |
27 | 29 | |
28 | 30 | Route::group(['prefix' => 'ceptd'], function () { |