Skip to content
Snippets Groups Projects
Commit 19923399 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Limit resource list actions to the documented ones

parent ddf8aa72
No related branches found
No related tags found
No related merge requests found
Pipeline #228 passed
...@@ -28,11 +28,13 @@ module Passwordstate ...@@ -28,11 +28,13 @@ module Passwordstate
end end
def folders def folders
ResourceList.new self, Passwordstate::Resources::Folder ResourceList.new self, Passwordstate::Resources::Folder,
only: %i[all search post]
end end
def hosts def hosts
ResourceList.new self, Passwordstate::Resources::Folder ResourceList.new self, Passwordstate::Resources::Host,
only: %i[search post delete]
end end
def passwords def passwords
...@@ -40,7 +42,8 @@ module Passwordstate ...@@ -40,7 +42,8 @@ module Passwordstate
end end
def password_lists def password_lists
ResourceList.new self, Passwordstate::Resources::PasswordList ResourceList.new self, Passwordstate::Resources::PasswordList,
except: %i[put delete]
end end
def valid? def valid?
......
...@@ -3,6 +3,8 @@ module Passwordstate ...@@ -3,6 +3,8 @@ module Passwordstate
class Folder < Passwordstate::Resource class Folder < Passwordstate::Resource
api_path 'folders' api_path 'folders'
index_field :folder_id
accessor_fields :folder_name, accessor_fields :folder_name,
:description :description
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment