Skip to content

Allow path overwrite for EdgeMedia requests #47

@addb

Description

@addb

Task description

Add support for extensions to overwrite path for edge requests.

  1. Check for custom path experience event data
    Format:

    "request": {
        "path" : {custom path}
        }
    }
    

    EdgeMedia Example:

    "request": {
        "path" : "va/v1/sessionStart"
        }
    }
    
  2. Overwrite the path based on values found for path in the experience event data
    Endpoint Format: https://edge.domain/ee/{custom path}
    EdgeMedia Endpoint Example: https://edge.domain/ee/va/v1/sessionStart

  3. Add necessary Unit and Functional test

Additional implementation details or code snippet(s)

Sample EdgeMedia Experience Event:

"id": "93D05BBC-E5E3-88AF-AECB-5B224BDC80C1",
"name": "EdgeMediaTrackExperienceEvent",
"type": "com.adobe.eventtype.edge",
"source": "com.adobe.eventsource.requestContent",
"data": {
    "xdm" : {
        "mediaCollection" : {
            "sessionDetails" : {
                "ID" : "bipbop",
                "isDownloaded" : false
                "channel": "EdgeMedia-iOS-channel",
                "length": 1800,
                "name": "Bip bop video",
              "resume": false
                "sdkVersion" : "v1.2.3",
                "streamType" : "vod"
             
            },
            "playerEventDetails" : {
                "playhead" : 1
            }
        },
        "timestamp": "VideoEventTimeStamp"  
    }
    "request" : {
            "path" : "va/v1/sessionStart"
    }
}
"timestamp": "2022-07-21 21:46:18 +0000",
"responseId": nil,
"mask": nil
]

Final path for corresponding Edge Request:

`https://edge.domain/ee/va/v1/sessionStart`

Metadata

Metadata

Assignees

Labels

taskItem that can be completed as a standalone code change or is part of an epic.Used by issue template

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions