GithubHelp home page GithubHelp logo

Comments (7)

SebastianStehle avatar SebastianStehle commented on August 25, 2024 1

Both are valid points. Can you add feature requests (seperate issues) for them?

from notifo.

jannishuebl avatar jannishuebl commented on August 25, 2024 1

sure, thank you!

from notifo.

SebastianStehle avatar SebastianStehle commented on August 25, 2024

Hi,

this is already implemented. You can add an allowed topic for an user, then a user can only subscribe to this topic: https://app.notifo.io/api/docs/index.html?url=/api/openapi.json#operation/Users_PostAllowedTopic

It is a prefix, so you would set the prefix /users/:id/ for a user.

Is there the plan to support such a feature? I could try to help, but i have no experience in C#, but i could help with the documentation instead.

Always very welcome :)

from notifo.

jannishuebl avatar jannishuebl commented on August 25, 2024

Hi,

ah thanks i did not see that. :)

But when i understand that api right it would be great to have the possiblity to query the allowed topics, eg return it here:

https://notifo.easierlife.com/api/docs/index.html?url=/api/openapi.json#operation/User_GetUser

and is there a reason not having a GET /api/me/subscriptions endpoint?

from notifo.

jannishuebl avatar jannishuebl commented on August 25, 2024

@SebastianStehle

I tried the allowed topic api, but no notification was send to the user which is subscripte to /users/:id/subtopic.

I had a look at the code and thought that is code lines prevents the events from being published:

else if (IsUserTopic(topic, out var userId))

As far as i understand when the topic starts with users/ it simple creates a dummy subscription for /users/:id and not return the subtopics.

from notifo.

SebastianStehle avatar SebastianStehle commented on August 25, 2024

Yes, exactly. Your code change makes absolutely sense for me :)

from notifo.

SebastianStehle avatar SebastianStehle commented on August 25, 2024

Can we close this?

from notifo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.