Uploaded image for project: 'mod-invoice'
  1. mod-invoice
  2. MODINVOICE-45

Define GET /exchange-rates

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Won't Do
    • None
    • 1.0.0
    • None
    • Thunderjet

    Description

      Overview:
      In order to limit the number of calls out to the public exchange rate API, e.g. by multiple instances of the invoice module, or by other modules which need exchange rate information, we should implement an exchange-rates API. This API will provide a central location for modules to obtains exchange-rate information and provides a caching layer.

      {GET /exchange-rates/<from>/<to>}

      where from and to are currency codes, e.g. USD, GBP

      Approach:
      Define a new interface "exchange-rates" w/ appropriately named permissions
      Define a new exchange-rate schema:

      {
        "to": "USD",
        "from": "EUR",
        "rate": 0.8929368694,
        "date": "2019-05-06"
      }
      

      See MODINVOICE-44 for the implementation details of this API.

      Acceptance Criteria:

      • RAML and ModuleDescriptor are updated
      • Schemas and Schema Examples exist

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                cmcnally Craig McNally
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases