aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/api/ApiMiddlewareTest.php
Commit message (Collapse)AuthorAgeFilesLines
* New plugin hook: ability to add custom filters to Shaarli search engineArthurHoaro2021-02-041-0/+2
| | | | | | | 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
* Merge pull request #1575 from ArthurHoaro/feature/php8ArthurHoaro2020-10-031-7/+7
|\
| * Compatibility with PHPUnit 9ArthurHoaro2020-09-291-7/+7
| |
* | Revert unrelated changes and add unit testsArthurHoaro2020-09-301-0/+47
|/
* Comply with PHPUnit V8: setup/teardown functions must return voidArthurHoaro2020-09-261-2/+2
|
* Add and update unit test for the new system (Bookmark + Service)ArthurHoaro2020-01-181-2/+6
| | | | See #1307
* Optimize and cleanup importsVirtualTam2019-01-131-2/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* application: introduce the Shaarli\Config namespaceVirtualTam2017-03-041-2/+3
| | | | | | | | | | | 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/+26
| | | | | | | | | | | | | | | | | 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/+184
* REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.