X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2Fapi.md;h=d522767fd80b294fd93da04345a9dafb5a8a0b4c;hb=c65d574ac3323e3d4b42788b58e00598176173de;hp=0f2243b5c1bb316315c3787f34c74fde53f49dfd;hpb=8de263df8b3035a6dc50086a5e30f5b5779b71d0;p=friendica.git diff --git a/doc/api.md b/doc/api.md index 0f2243b5c1..d522767fd8 100644 --- a/doc/api.md +++ b/doc/api.md @@ -393,6 +393,27 @@ Object of: --- +### media/metadata/create (POST,PUT; AUTH) + +#### Parameters + +Parameters are sent as JSON object: + +``` +{ + "media_id":"1234", + "alt_text": { + "text":"Here comes the description" + } +} +``` + +#### Return values + +None + +--- + ### oauth/request_token (*) #### Parameters @@ -654,9 +675,11 @@ Returned status object is conform to GNU Social/Twitter api. Friendica adds some addictional fields: +- author: a user object, it's the author of the item. In case of a reshare for legacy reasons the "user" field doesn't show the real author. This field always contains the real author of a post. - owner: a user object, it's the owner of the item. - private: boolean, true if the item is marked as private - activities: map with activities related to the item. Every activity is a list of user objects. +- comments: comment numbers This properties are prefixed with "friendica_" in JSON responses and namespaced under "http://friendi.ca/schema/api/1/" in XML responses @@ -666,6 +689,9 @@ JSON: [ { // ... + 'friendica_author' : { + // user object + }, 'friendica_owner' : { // user object }, @@ -681,7 +707,8 @@ JSON: 'attendyes': [], 'attendno': [], 'attendmaybe': [] - } + }, + 'friendica_comments': 12 }, // ... ] @@ -707,6 +734,7 @@ XML: + 21 @@ -756,6 +784,7 @@ Friendica doesn't allow showing followers of other users. * count: alias for the rpp parameter * since_id: returns statuses with ids greater than the given id * max_id: returns statuses with ids lower or equal to the given id +* exclude_replies: don't show replies (default: false) #### Unsupported parameters