Magento – How to add extension attributes to order interface in magento 2.2

magento2.2order-detailsrest api

I wanted to write custom rest api to get all customer's order and details using customer token. I'm able to achieve this by this post.

But it is not loading up my custom extension attribute (Delivery Slot) in the order details api.

Also I need to load the image/thumnail url for each product/item in that order.

Can anyone help me out in this regard?

Related Topic