-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE - Mock Stream properties #760
Comments
How is this large binary requested / retrieved in your official server ? Do you have sample output ? |
The images are downloaded from S3, then converted into an InputStream (in Java) before it is sent out with the other response data. Not sure how to show a sample output, but when we make a request to e.g. |
Do you have a sample response from an HTTP standpoint ? |
The raw response would help, as well as the associated query, because otherwise it just looks like you are getting an image :) |
This is a sample query: This is the literal raw response from curl, seems to be a binary output:
Sorry if this doesn't help, I don't know what other response fields I can show you because I am literally just getting the image itself as the response. If you're asking how the response would look like as the entire entity JSON object, the way our service is implemented, on a normal GET request (so just |
Hmmm, can you share the metadata definition around this InspectionResults EntitySet ? |
Yup, it's a stream:
|
Then we don't support Stream properties currently, you'd need an enhancement request for this :) |
Got it, thanks for the help! Have updated this issue accordingly :) |
As a UI5 developer
I want to mock
Stream
properties of my dataset,so that I can test my UI5 app is able to process them correctly
Description
What is the high level purpose and value of the feature? The description should ensure that anyone reading understands what it is doing (at a high level) and most importantly why.
Suppose we have the following metadata definition:
When we get the
InspectionResults/image
attribute, the image's binary data would be returned as response. Then, the frontend can display the image straightaway.Sample response:
![image](https://private-user-images.githubusercontent.com/29372445/291220952-8f4c2125-859b-465e-a09d-898fc4846e63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNjI2NTIsIm5iZiI6MTczOTI2MjM1MiwicGF0aCI6Ii8yOTM3MjQ0NS8yOTEyMjA5NTItOGY0YzIxMjUtODU5Yi00NjVlLWEwOWQtODk4ZmM0ODQ2ZTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUF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bswxkz_UQGdzGJ1NFNLwXl3XG3hljtuqg)
Sample query:
curl --location 'localhost:8080/odata/v4/VisualInspectionResult.svc/InspectionResults(46cc8aa3-5e6e-447d-b571-b01e4612cbcf)/image'
Technical Design
What modules need to be created or enhanced?
How would the functionality be exposed and how can it be consumed?
Acceptance Criteria
GivenWhenThen format (https://martinfowler.com/bliki/GivenWhenThen.html)
Given I have a ...
when I execute ...
then ... will happen.
Notes
Tasks
The text was updated successfully, but these errors were encountered: