author | ymh <ymh.work@gmail.com> |
Sun, 02 Oct 2016 11:49:00 +0200 | |
changeset 308 | e032d686d88e |
parent 307 | 07b44a378ad8 |
child 319 | 78990a8a069b |
permissions | -rw-r--r-- |
280 | 1 |
<?php |
2 |
||
3 |
use Illuminate\Http\Request; |
|
4 |
||
5 |
/* |
|
6 |
|-------------------------------------------------------------------------- |
|
7 |
| API Routes |
|
8 |
|-------------------------------------------------------------------------- |
|
9 |
| |
|
10 |
| |
|
11 |
*/ |
|
12 |
Route::group(['prefix' => 'v1'] , function() { |
|
305
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
13 |
|
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
14 |
Route::group(['prefix' => 'documents'], function() { |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
15 |
Route::pattern('id', ".*"); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
16 |
Route::get('{id}/transcript', 'Api\DocumentController@transcript'); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
17 |
Route::resource('', 'Api\DocumentController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
18 |
['only' => ['index', 'show', 'update']]); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
19 |
}); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
20 |
|
280 | 21 |
|
305
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
22 |
Route::group(['prefix' => 'resolvers'], function() { |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
23 |
Route::resource('viaf', 'Api\ViafController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
24 |
['only' => ['show']]); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
25 |
Route::resource('lexvo', 'Api\LexvoController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
26 |
['only' => ['show']]); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
27 |
Route::resource('bnf', 'Api\BnfController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
28 |
['only' => ['index','show']]); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
29 |
Route::resource('geonames', 'Api\GeonamesController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
30 |
['only' => ['index','show']]); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
31 |
}); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
32 |
|
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
33 |
|
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
34 |
Route::group(['prefix' => 'stats'], function() { |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
35 |
Route::resource('languages', 'Api\LanguageController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
36 |
['only' => ['index']]); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
37 |
Route::resource('themes', 'Api\ThemeController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
38 |
['only' => ['index']]); |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
39 |
Route::resource('discourses', 'Api\DiscourseController', |
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
40 |
['only' => ['index']]); |
307 | 41 |
Route::resource('datestats', 'Api\DateStatsController', |
42 |
['only' => ['index']]); |
|
308
e032d686d88e
add hierarchy info in document indexation + geostats api controllers + add some keys to geonames resolver
ymh <ymh.work@gmail.com>
parents:
307
diff
changeset
|
43 |
Route::resource('geostats', 'Api\GeoStatsController', |
e032d686d88e
add hierarchy info in document indexation + geostats api controllers + add some keys to geonames resolver
ymh <ymh.work@gmail.com>
parents:
307
diff
changeset
|
44 |
['only' => ['index']]); |
305
ff6cf3fc5f40
api reorganisation and propagation if the changes + some code cleaning
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
45 |
}); |
307 | 46 |
}); |