```ruby
module News
  class API < Grape::API
    prefix 'api'

    resource :links do
      get do
        Link.all
      end
    end
  end
end
```

Set JSON as default format
user
```ruby
module News
  class API < Grape::API
    prefix 'api'
    format :json

    resource :links do
      get do
        Link.all
      end
    end
  end
end
```
assistant