Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-829

implement API in swatch-subscriptions-sync

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Critical Critical
    • 2023-02-27 - API
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      To provide an endpoint that swatch contracts can use to map a SKU to the swatch product IDs. 

      • swatch-subscriptions-sync Internal API changes (for inter-service integration)
      • GET /internal/offerings/{sku}/product_tags
      • This endpoint will allow any service to lookup the swatch product(s) associated with a given SKU. (This lookup will use the offering information already stored in the database). We already store in the offering table the `product_name`, and map the `product_name` to a swatch `product_id` via info in `tag_profile.yaml`. Navigate this mapping the other direction: given a SKU, what tags does it map to via the recorded `product_name`.
      • Define new API src/main/spec/internal-subscriptions-sync-api-spec.yaml

      QE: given this is intended to support mapping a contract, testing of this functionality should be covered by SWATCH-805 instead (this also avoids coupling QE tests to this implementation detail).

            karshah@redhat.com Kartik Shah
            rhn-support-hhudgeon Hayley Kirby
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: