Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Button interactions, notifications, comments, edit, findById #78

Open
albjeremias opened this issue Feb 11, 2022 · 3 comments
Open

Button interactions, notifications, comments, edit, findById #78

albjeremias opened this issue Feb 11, 2022 · 3 comments

Comments

@albjeremias
Copy link
Contributor

albjeremias commented Feb 11, 2022

-ButtonFile:
Description: This is the Button post page. Inserted in this page both the creator of the button and the visitors can see the Button data and the Feeds associated with this Button.
API calls:
Button/FindByID : Receive all button data by it's id
Feeds are lists of interactions, in this case we can show different lists of interactions cards depending on predefined filters, these filters are:
-Button data changes (shows cards refered to the changes in Button Data made by the creator)
-User comments : show only posted comments of visitors and creators on the Button ordered from recent to past.
-External Notifications : shows updates from external sources like telegram.
-All interactions: shows all interactions of the Button on the feed

-ButtonNew
Description: In this page we create the Button post according to the ButtonTemplate prefered for the Network. Form fields show up according to this ButtonTemplate .
•ButtonTemplate/findById
•Button/New

API for buttons:

  • /buttons/new POST

DONE. please test

  • /buttons/findById/{id} GET

missing permissions for non-public readable buttons... how will this work?!

  • /buttons/find GET

same as findById

  • /buttons/edit/{id} PATCH

DONE. please test

  • /buttons/delete/{id} DELETE

DONE. please test

  • /buttons/addToNetworks/{buttonId}

DONE. please test

  • /buttons/feed/{buttonId} GET
  • /buttons/feed/newInteraction/{buttonId}

feed:
time, message, interaction,

-Button data changes (shows cards refered to the changes in Button Data made by the creator)
-User comments : show only posted comments of visitors and creators on the Button ordered from recent to past.
-External Notifications : shows updates from external sources like telegram.

@watchoutfreedom
Copy link
Contributor

Is this a preview of the work for version 0 ?

@albjeremias
Copy link
Contributor Author

albjeremias commented Feb 18, 2022

-Explore
Description: Display Buttons in different formats and filtered in different ways.
•Buttons filterBy (tag, button type, location, date interval, and ButtonTemplate data) orderBy (Last created, First created, event date, Distance, Button interactions, User likes)
• Display on Map one by one: Get Buttons filtered by view coordinates rectangle and its basic data (Creator avatar, Button type, tags, position) (position). When clicked the pin it calls for more info (Button image, description, title date, locationname)
•Display on list: Get all buttons determined by the map position and the filters and display them o a list (creator avatar, creator name, button type, tags, Button title, Button image, button location name, button date)
•Display on map by zones: Shows Buttons on list filtered by poligons selected by the user on the map. Filter by poligonal coordinate.

/buttons/explore/filterBy/{tag|buttontype|poly_gis|button_template_data|creator|tags|button_title} GET

@watchoutfreedom
Copy link
Contributor

It seems ok, do you think we need the /explore/ in the address?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants