fizzy icon indicating copy to clipboard operation
fizzy copied to clipboard

Add basic API

Open dhh opened this issue 3 weeks ago • 9 comments

Fizzy should have a simple API that's just authenticated by bearer tokens.

dhh avatar Dec 01 '25 13:12 dhh

Thanks @dhh for getting this started! I had started working on making boards, users, and tags available via the API to display them in native menus, so this is great.

Mind if I add onto this PR? Internally, we still need index endpoints for /users.json and /tags.json. There currently isn't a top-level tags_controller, but I'm assuming that's ok to add to support apps fetching the list of tags?

jayohms avatar Dec 02 '25 17:12 jayohms

Yes, please do add onto this! I've only just started filling out the basics of what we need. Would be great to drive things from what an actual app would want.

dhh avatar Dec 02 '25 18:12 dhh

would love this!

kieranklaassen avatar Dec 03 '25 03:12 kieranklaassen

I was looking for this as I want to import all of our current GitHub issues. A basic API is great, I just want to add our issues as cards.

jankeesvw avatar Dec 03 '25 09:12 jankeesvw

@dhh I've added API support for users and tags. An additional thing we need is something like an /identity.json endpoint that provides the user and account(s) info, since switching between accounts will be done natively. Are you fine with a new identities_controller to get this data?

jayohms avatar Dec 03 '25 13:12 jayohms

Think we need my/identity mapped to IdentitiesController and just flies off Current.identity 👍

dhh avatar Dec 03 '25 13:12 dhh

I need the endpoint to not be account-slug scoped, since it'll be the stable endpoint to get all identity/account information post-authentication. Is <domain>/my/identity.json still your preference in that case?

jayohms avatar Dec 03 '25 14:12 jayohms

Ah, I see. No, then it should probably just live straight on the root with /identity.

dhh avatar Dec 03 '25 14:12 dhh

Would be great if you could close cards with the API (so we can do this from a GitHub action when we merge something).

jankeesvw avatar Dec 03 '25 15:12 jankeesvw