-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make a route to share based on a configuration file #5
Comments
Performing a POST request on the
The request above will perform:
and
|
Different proposition: the
Then each action is configured to pick whatever it needs inside this object to share content.
|
Different proposition: All actions use the same standard set of data and use only what they need.
|
Final JSON: {
"path": "path to a file / url",
"file": "myFile.jpg",
"type": "image/jpg",
"details": {
"width": 1024,
"height": 1024,
"thumbnail": {
"file": "myThumb.jpg",
"width": 128,
"height": 128,
"type": "image/jpg",
"source": "path to a file / url"
}
},
"meta": {
"email": {
"from": "",
"to": "",
"firstname": "",
"lastname": "",
"subject": "",
"text": "",
"html": "",
"template": "",
"attachments": [{
"name": "",
"content": ""
}],
"vars": ""
},
"title": "",
"description": "",
"message": "...",
"source": "",
"destination": "",
"user": "",
"password": "",
"hostname": "",
"target": "",
"privacyStatus": "",
"uploadDirectoryPath": "",
"uploadDirectoryID": "",
"printer": "",
"format": "",
"copies": "",
"options": "",
"bucket": "",
"token": ""
}
} The |
In the V2 of altruist, this option seems mandatory. Recently I've been posting using :
It is completely useless to repost the Data. This should be optional and not mandatory. It also appears to be a great option to be able to post a link to the media (image, video or sound) that we want to share. |
Sharing should be easy as using one route.
Based on the configuration the route will handle the automatic sharing principle
The text was updated successfully, but these errors were encountered: