aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/ApiMiddleware.php
Commit message (Collapse)AuthorAgeFilesLines
* New plugin hook: ability to add custom filters to Shaarli search engineArthurHoaro2021-02-041-0/+1
| | | | | | | A new plugin hook has been added: hook_test_filter_search_entry This hook allows to filter out bookmark with custom plugin code when a search is performed. Related to #143
* Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-091-1/+3
|
* Add mutex on datastore I/O operationsArthurHoaro2020-10-131-0/+2
| | | | | | To make sure that there is no concurrent operation on the datastore file. Fixes #1132
* Revert unrelated changes and add unit testsArthurHoaro2020-09-301-7/+17
|
* Fix identationChristoph Stoettner2020-09-301-5/+5
|
* Change to ->container->environmentChristoph Stoettner2020-09-301-18/+10
|
* Workaround for hoster (ionos)Christoph Stoettner2020-09-291-2/+6
| | | | | | The hoster writes the environment variable with bearer token to REDIRECT_HTTP_AUTHORIZATION and needs to provide RewriteBase / to .htaccess
* Process main page (linklist) through Slim controllerArthurHoaro2020-07-231-1/+8
| | | | | Including a bunch of improvements on the container, and helper used across new controllers.
* Apply the new system (Bookmark + Service) to the whole code baseArthurHoaro2020-01-181-5/+6
| | | | See https://github.com/shaarli/Shaarli/issues/1307
* Remove the redirector settingArthurHoaro2019-02-091-3/+1
| | | | Fixes #1239
* Optimize and cleanup importsVirtualTam2019-01-131-2/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-1/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to application/VirtualTam2018-12-021-2/+3
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Add history entries for API endpointArthurHoaro2017-05-071-2/+3
| | | | CHANGED: datetime is now store as an object in history store file
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-041-1/+1
| | | | | | | | | | | Namespaces have been introduced with the REST API, and should be generalized to the whole codebase to manage object scope and benefit from autoloading. See: - https://secure.php.net/manual/en/language.namespaces.php - http://www.php-fig.org/psr/psr-4/ Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* API: expect JWT in the Authorization headerVirtualTam2017-01-151-3/+8
| | | | | | | | | | | | | | | | | Relates to https://github.com/shaarli/Shaarli/pull/731 Added: - require the presence of the 'Authorization' header Changed: - use the HTTP Bearer Token authorization schema See: - https://jwt.io/introduction/#how-do-json-web-tokens-work- - https://tools.ietf.org/html/rfc6750 - http://security.stackexchange.com/q/108662 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* REST API structure using Slim frameworkArthurHoaro2016-12-151-0/+132
* REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.