helpbuttons / hb-back

backend for helpbuttons
GNU Affero General Public License v3.0
4 stars 2 forks source link

Add feed model and notifications #63

Open watchoutfreedom opened 3 years ago

watchoutfreedom commented 3 years ago

ButtonFile and Profile have Feeds of notifications that import info from external app (like telegram) and show notifications of the local activity and posts. Those feed can be very simple at the beggining (just ordered by time), and we can customize them with filters in the future.

watchoutfreedom commented 3 years ago

It has its own component /Feed in the front repo

albjeremias commented 2 years ago

@watchoutfreedom this is very complicated to understand what is needed.

Is it something like this in swagger:

 /feed/{fromDate}:
    get:
        summary: Get all activity for the current user
        tags:
          - users
        security:
          - tokenAuth: []
        parameters:
          - in: path
            name: fromDate
            schema:
              type: string
            required: true
        responses:
          200:
            description: OK
            content:
              application/json:
                schema:
                  type: array
                  items: 
                     type: object
                     properties:
                      status:
                        type: string
                      created:
                        type: string
                      latitude:
                        type: number
                      longitude:
                        type: number
          401:
            $ref: "#/components/responses/UnauthorizedError"
albjeremias commented 2 years ago

from where do i get statuses? which api end points should i use to add new statuses?

watchoutfreedom commented 2 years ago

It's similar to that @albjeremias , to make it short I would say :

we would need to update the calls with time but for now the parameters for a feed call I think would be :