aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/api/ApiUtilsTest.php
Commit message (Collapse)AuthorAgeFilesLines
* lint: apply phpcbf to tests/VirtualTam2018-12-021-2/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* REST API: implement PUT methodArthurHoaro2017-05-071-0/+78
| | | | | * Related to #609 * Documentation: http://shaarli.github.io/api-documentation/#links-link-put
* Merge pull request #727 from ArthurHoaro/api/getlinksArthurHoaro2017-01-151-0/+65
|\ | | | | REST API: implement getLinks service
| * REST API: implement getLinks serviceArthurHoaro2017-01-151-0/+65
| | | | | | | | See http://shaarli.github.io/api-documentation/#links-links-collection-get
* | API: fix JWT signature verificationVirtualTam2017-01-041-6/+9
|/ | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/shaarli/Shaarli/issues/737 Added: - Base64Url utilities Fixed: - use URL-safe Base64 encoding/decoding functions - use byte representations for HMAC digests - all JWT parts are Base64Url-encoded See: - https://en.wikipedia.org/wiki/JSON_Web_Token - https://tools.ietf.org/html/rfc7519 - https://scotch.io/tutorials/the-anatomy-of-a-json-web-token - https://jwt.io/introduction/ - https://en.wikipedia.org/wiki/Base64#URL_applications - https://secure.php.net/manual/en/function.base64-encode.php#103849 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* REST API structure using Slim frameworkArthurHoaro2016-12-151-0/+206
* REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.