aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/controllers
Commit message (Collapse)AuthorAgeFilesLines
* Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-093-5/+6
|
* Merge pull request #1616 from dimtion/fix-api-redirectArthurHoaro2020-10-291-1/+1
|\ | | | | API postLink: change relative path to absolute path
| * postLink: change relative path to absolute pathLoïc Carr2020-10-281-1/+1
| |
* | Add strict types for bookmarks managementArthurHoaro2020-10-131-8/+11
| | | | | | | | | | | | | | | | Parameters typing and using strict types overall increase the codebase quality by enforcing the a given parameter will have the expected type. It also removes the need to unnecessary unit tests checking methods behavior with invalid input.
* | REST API: allow override of creation and update datesArthurHoaro2020-08-292-3/+4
|/ | | | | | | Note that if they're not provided, default behaviour will apply: creation and update dates will be autogenerated, and not empty. Fixes #1223
* Apply the new system (Bookmark + Service) to the whole code baseArthurHoaro2020-01-185-70/+68
| | | | See https://github.com/shaarli/Shaarli/issues/1307
* Optimize and cleanup importsVirtualTam2019-01-133-5/+5
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-1/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\HistoryVirtualTam2019-01-121-1/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to application/VirtualTam2018-12-023-5/+4
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Implements Tags endpoints for Shaarli's REST APIArthurHoaro2018-06-042-4/+165
| | | | | | | | | | | | Endpoints: * List All Tags [GET] * Get a tag [GET] * Update a tag [PUT] * Delete a tag [DELETE] Fixes #904 References shaarli/api-documentation#34
* PSR: use elseif instead of else ifArthurHoaro2018-02-282-4/+4
| | | | See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
* History: fix entries orderArthurHoaro2017-05-071-1/+0
|
* Add history entries for API endpointArthurHoaro2017-05-073-3/+13
| | | | CHANGED: datetime is now store as an object in history store file
* API: Get History endpointArthurHoaro2017-05-071-0/+71
| | | | See http://shaarli.github.io/api-documentation/#links-history-get
* API: add DELETE endpointArthurHoaro2017-05-071-0/+23
| | | | | | Based on #840 See http://shaarli.github.io/api-documentation/\#links-link-delete
* REST API: implement PUT methodArthurHoaro2017-05-071-0/+42
| | | | | * Related to #609 * Documentation: http://shaarli.github.io/api-documentation/#links-link-put
* REST API: implement POST link serviceArthurHoaro2017-03-272-1/+53
|
* REST API: implements getLink by ID serviceArthurHoaro2017-02-191-2/+23
| | | | See http://shaarli.github.io/api-documentation/#links-link-get
* REST API - getLinks: support the visibility parameterArthurHoaro2017-01-171-3/+2
|
* Update LinkFilter to be able to filter only public linksArthurHoaro2017-01-161-1/+2
| | | | | | No update regarding the UI or the API for now Fixes #758
* REST API: implement getLinks serviceArthurHoaro2017-01-151-0/+86
| | | | See http://shaarli.github.io/api-documentation/#links-links-collection-get
* REST API structure using Slim frameworkArthurHoaro2016-12-152-0/+96
* REST API routes are handle by Slim. * Every API controller go through ApiMiddleware which handles security. * First service implemented `/info`, for tests purpose.