- 
    Task 
- 
    Resolution: Done
- 
    Normal 
- 
    None
- 
    None
- 
    None
- 
        5
- 
        True
- 
        
- 
        True
- 
        subs-swatch-thunder
- 
        
- 
        
The endpoint is already defined in the openapi.yaml file and has a default implementation that returns a 501 Not Implemented.
Implement the API such that:
- It is secured using the support and test security roles (should use an API key via the x-rh-swatch-psk header).
- It uses the outbox repository to fetch the all of the existing outbox records.
- Paging should be supported for this API since there could be a lot of records returned.
Required Testing
- Unit tests & Junit integration test using test containers.
- Existing IQE component test is updated:
	- Rename the test to test_fetch_all_outbox_records
- Use the POST endpoint to create initial records.
 
- Test added to cover paging functionality.
- Tests are added to validate that the endpoint is secured appropriately for each role.
- Thought has been given to any other negative test cases that might be out of scope of this card, and are documented somewhere.
Acceptance Criteria
- The endpoint can be used to update an existing outbox record.
- Paging is supported.
- Database query is not used to validate existing records.
- Adequate test coverage exists.
- blocks
- 
                    SWATCH-3782 Implement DELETE /api/swatch-metrics-hbi/internal/outbox/{uuid} -         
- Closed
 
-         
- is blocked by
- 
                    SWATCH-3777 Define and generate an internal REST API for the swatch-metrics-hbi outbox records. -         
- Release Pending
 
-         
- 
                    SWATCH-3778 Implement POST /api/swatch-metrics-hbi/internal/outbox -         
- Release Pending
 
-         
- 
                    SWATCH-3862 Configure swatch-common-security in swatch-metrics-hbi -         
- Closed
 
-