aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/controllers/Links.php
Commit message (Collapse)AuthorAgeFilesLines
* Handle pagination through BookmarkServiceArthurHoaro2021-01-201-19/+19
| | | | | | | Handle all search results through SearchResult object. This is a required step toward implementing a BookmarkService based on SQL database. Related to #953
* API: POST/PUT Link - properly parse tags stringArthurHoaro2020-12-291-2/+10
| | | | | | Even though the documentation specify that tags should be passed as an array, tags string is actually allowed. So this adds a proper parsing with configured separator. Related to #1651
* Apply PHP Code Beautifier on source code for linter automatic fixesArthurHoaro2020-11-091-2/+4
|
* 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-291-2/+2
|/ | | | | | | 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-181-48/+31
| | | | See https://github.com/shaarli/Shaarli/issues/1307
* Implements Tags endpoints for Shaarli's REST APIArthurHoaro2018-06-041-4/+4
| | | | | | | | | | | | 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-281-2/+2
| | | | See https://www.php-fig.org/psr/psr-2/\#51-if-elseif-else
* Add history entries for API endpointArthurHoaro2017-05-071-1/+4
| | | | CHANGED: datetime is now store as an object in history store file
* 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-271-1/+43
|
* 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