Skip to content
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

feat(customer): app data rest api #1919

Merged
merged 25 commits into from
Dec 7, 2024
Merged

feat(customer): app data rest api #1919

merged 25 commits into from
Dec 7, 2024

Conversation

hekike
Copy link
Contributor

@hekike hekike commented Nov 27, 2024

Changes

  • Remove app data and observer from customer pkg
  • Add list, upsert, delete customer data to app
  • Moves app factory to service level
  • Define new API
  • Wire up new API

Examples

Get customer apps with customer app data

GET /api/v1/customers/{customer_id}/apps

Upsert customer app data with app type

PUT /api/v1/customers/{customer_id}/apps

[
  {
    "type": "stripe",
    "stripeCustomerId": "cus_xxx"
  }
]

Upsert customer app with app ID

PUT /api/v1/customers/{customer_id}/apps

[
  {
    "id": "{app_id}",
    "type": "stripe",
    "stripeCustomerId": "cus_xxx"
  }
]

Delete customer app data by app ID

DELETE /api/v1/customers/{customer_id}/apps/{app_id}

@hekike hekike added area/api area/billing release-note/feature Release note: Exciting New Features labels Nov 27, 2024
@hekike hekike force-pushed the feat/customer-app-rest branch from bc47a32 to 371a96c Compare November 27, 2024 16:56
@hekike hekike changed the title Feat/customer app rest feat(customer): app data rest api Nov 27, 2024
@hekike hekike marked this pull request as ready for review November 27, 2024 16:57
@hekike hekike requested a review from turip November 27, 2024 20:21
@hekike hekike mentioned this pull request Dec 2, 2024
@hekike hekike force-pushed the feat/customer-app-rest branch from eb02dd6 to 06c1482 Compare December 7, 2024 11:58
turip
turip previously approved these changes Dec 7, 2024
@hekike hekike force-pushed the feat/customer-app-rest branch from 06c1482 to 16dd0d8 Compare December 7, 2024 13:02
@hekike hekike enabled auto-merge (squash) December 7, 2024 13:02
@hekike hekike merged commit 186859b into main Dec 7, 2024
24 checks passed
@hekike hekike deleted the feat/customer-app-rest branch December 7, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api area/billing release-note/feature Release note: Exciting New Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants