Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-142

Implement GET /orders/order-lines endpoint

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 56
    • Story Points:
      2
    • Development Team:
      Thunderjet

      Description

      Method Path Request Response Storage Path
      GET /orders/order-lines CQL query arg po_line_collection /orders-storage/po-lines

      To do:

      • Due to naming collisions in the model classes generated by RMB (jsonschema2pojo plugin) the acq-models PR #48 needs to be merged. Once this is done the following modules have to be updated to consume schema change:
        • UI orders app
        • mod-gobi
      • Update order.raml
        • Update types adding/updating:
            po-line-collection: !include acq-models/mod-orders-storage/schemas/po_line_collection.json
            po-line: !include acq-models/mod-orders-storage/schemas/po_line.json
            composite-po-line: !include acq-models/composite_po_line.json
          
        • Add new endpoint definition
        • Update existing endpoint definitions to consume composite-po-line type
      • Update ModuleDescriptor-template.json adding new GET /orders/order-lines endpoint definition and required permissions
      • Business logic updates
        mod-orders should re-translate the incoming request to mod-orders-storage with some notes:
        • The offset, limit and lang parameters should be added as is to the storage's request
        • In case the request does not contain query parameter or it is empty, query must not be added to the storage's request
        • In case the request contains not empty query parameter, the value has to be encoded and resulting query parameter added to the storage's request
        • GET request should be sent to /orders-storage/po-lines endpoint and the resulting response should be returned back to client as is

      Acceptance Criteria:

      • New endpoint is implemented
      • Unit tests are added
      • API tests are updated

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                cmcnally Craig McNally
                Reporter:
                piotr_kalashuk Piotr Kalashuk
                Tester Assignee:
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases