On a daily basis I use GrapeAPI to create API. Because I don't want to rust I'm trying to create app using Rails::API (ActionController::API). The thing is I want to have endpoint to be like:

`GET products/:product_id/shipment/:id` - which retrieve data on a specific shipment. How to create routes for such action?

`ShipmentController`

```
class ShipmentsController < ApplicationController
  before_action :set_product

  def show
    @shipment = Shipment.find(params[:id])
  end

  private

  def set_product
    @product = Product.find(params[:product_id])
  end
end

```