Skip to content

PEOPLE: JSON:API Standard API #1920

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

Closed
3 of 4 tasks
mtnstar opened this issue Nov 23, 2022 · 0 comments
Closed
3 of 4 tasks

PEOPLE: JSON:API Standard API #1920

mtnstar opened this issue Nov 23, 2022 · 0 comments

Comments

@mtnstar
Copy link
Contributor

mtnstar commented Nov 23, 2022

Hitobito besitzt heute ein API auf das nur lesend zugegriffen werden kann. Eine entsprechende Dokumentation befindet sich hier.

Mit diesem Epic soll eine neue API mit dem aktuellen JSON:API Standard vorerst für Personen (people) realisiert werden:

  • Endpoint /api/people, /api/people/:id
  • über das neue API können Personen:
    • gelistet (index)
    • angezeigt (show)
    • geändert (update)
    • erstellt (create) optional
    • gelöscht (delete) optional
      ... werden.
  • Die Authentifizierung erfolgt über:
    • ServiceTokens
    • Personal OAuth access token
    • aktuelle User Session
  • Authentifizierung via die deprecated Personal API tokens soll nicht möglich sein !
  • Berechtigungen werden via Abilities wie sonst in Hitobito validiert
  • Neben Personendaten sollen auch Telefonnummern (phone_numbers), Social Accounts (social_accounts) sowie Weitere Emails (additional_emails) aufgelistet und aktualisiert werden können. (nested in person) #show, #update, #create
  • Die Rollen sowie die Primary Group einer Person werden als Relationship ausgegeben

Tech-Spec

  • Feature Branch feature/json-api
  • Gem für json api: graphiti
  • Neuer Base Controller JsonApiController ohne Dry Crud
  • Neuer Controller JsonApi::PeopleController
  • Neuer api Scope in den Routes

ToDo

@mtnstar mtnstar changed the title PEOPLE: JSON:API 1.1 für /api/people PEOPLE: JSON:API 1.0 für /api/people Nov 23, 2022
@mtnstar mtnstar changed the title PEOPLE: JSON:API 1.0 für /api/people PEOPLE: JSON:API Standard API /api/people Nov 23, 2022
@mtnstar mtnstar changed the title PEOPLE: JSON:API Standard API /api/people PEOPLE: JSON:API Standard API people Nov 23, 2022
@mtnstar mtnstar changed the title PEOPLE: JSON:API Standard API people PEOPLE: JSON:API Standard API Nov 23, 2022
@mtnstar mtnstar added the epic label Nov 27, 2022
@mtnstar mtnstar mentioned this issue Nov 27, 2022
7 tasks
@mtnstar mtnstar self-assigned this Dec 5, 2022
@olibrian olibrian assigned carlobeltrame and unassigned mtnstar Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants