]> git.mxchange.org Git - friendica.git/commit
Changes in api
authorfabrixxm <fabrix.xm@gmail.com>
Sun, 27 Dec 2015 16:45:20 +0000 (17:45 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Mon, 28 Dec 2015 09:23:06 +0000 (10:23 +0100)
commit6b60560ea2840d069db2aadd63f8ee6ff2f6a390
tree1aceb0e208782f393a97a7cbaedb3c9a350a4284
parent835ad28d83cc4433697b700908493710323210c0
Changes in api

- Api functions can define an HTTP method to use to call them. "405 Method Not Allowed" is returned on error
- Api function that modify data accepts only POST as method.
- A list of HTTP return code related exception is added
- Api functions throw HTTP exceptions instead of return false or die()
- api_call() catches HTTP exceptions and return error message with corret HTTP response code
- api_format_items() returns also item activities count (# of like/dislike etc)
- api/friendica/photos/list return more info about photos. xml format added.
- api/friendica/photo/detail return more info, links to all sizes, no data except if 'size' parameter is passed. xml format added.
- new api api/friendica/activity/<verb> and api/friendica/activity/un<verb> to add or remove like/dislike/attend status
include/HTTPExceptions.php [new file with mode: 0644]
include/api.php
view/templates/api_photo_detail_xml.tpl [new file with mode: 0644]
view/templates/api_photos_list_xml.tpl [new file with mode: 0644]
view/templates/api_timeline_xml.tpl