Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

How to inherit only few methods from v1 version #26

@brahamshakti

Description

@brahamshakti

I don't know whether it is handled or not but I didn't find any documentation regarding inheriting only few methods from previous version.

eg.

api vendor_string: "myvendor", default_version: 1 do
   version 1 do
     cache as: 'v1' do
        resources :authorizations
     end
   end
   version 2 do
     inherit from: 'v1'
     # Now I want only `index` action to inherit from authorizations and want to modify other actions of authorization controller. How to do this?
   end
end

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions