Skip to content

Permify/permify-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

permify-ruby

Permify - the Ruby gem for the Permify API

Permify is an open source authorization service for creating fine-grained and scalable authorization systems.

This SDK is automatically generated by the OpenAPI Generator project:

Installation

Build a gem

To build the Ruby code into a gem:

gem build permify-ruby.gemspec

Then either install the gem locally:

gem install ./permify-ruby-v1.5.4.gem

(for development, run gem install --dev ./permify-ruby-v1.5.4.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'permify-ruby', '~> v1.5.4'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'permify-ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'permify-ruby'

api_instance = Permify::BundleApi.new
tenant_id = 'tenant_id_example' # String | Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.
body = Permify::BundleDeleteBody.new # BundleDeleteBody | 

begin
  #delete bundle
  result = api_instance.bundle_delete(tenant_id, body)
  p result
rescue Permify::ApiError => e
  puts "Exception when calling BundleApi->bundle_delete: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
Permify::BundleApi bundle_delete POST /v1/tenants/{tenant_id}/bundle/delete delete bundle
Permify::BundleApi bundle_read POST /v1/tenants/{tenant_id}/bundle/read read bundle
Permify::BundleApi bundle_write POST /v1/tenants/{tenant_id}/bundle/write write bundle
Permify::DataApi bundle_run POST /v1/tenants/{tenant_id}/data/run-bundle run bundle
Permify::DataApi data_attributes_read POST /v1/tenants/{tenant_id}/data/attributes/read read attributes
Permify::DataApi data_delete POST /v1/tenants/{tenant_id}/data/delete delete data
Permify::DataApi data_relationships_read POST /v1/tenants/{tenant_id}/data/relationships/read read relationships
Permify::DataApi data_write POST /v1/tenants/{tenant_id}/data/write write data
Permify::DataApi relationships_delete POST /v1/tenants/{tenant_id}/relationships/delete delete relationships
Permify::DataApi relationships_write POST /v1/tenants/{tenant_id}/relationships/write write relationships
Permify::PermissionApi permissions_bulk_check POST /v1/tenants/{tenant_id}/permissions/bulk-check bulk check api
Permify::PermissionApi permissions_check POST /v1/tenants/{tenant_id}/permissions/check check api
Permify::PermissionApi permissions_expand POST /v1/tenants/{tenant_id}/permissions/expand expand api
Permify::PermissionApi permissions_lookup_entity POST /v1/tenants/{tenant_id}/permissions/lookup-entity lookup entity
Permify::PermissionApi permissions_lookup_entity_stream POST /v1/tenants/{tenant_id}/permissions/lookup-entity-stream lookup entity stream
Permify::PermissionApi permissions_lookup_subject POST /v1/tenants/{tenant_id}/permissions/lookup-subject lookup-subject
Permify::PermissionApi permissions_subject_permission POST /v1/tenants/{tenant_id}/permissions/subject-permission subject permission
Permify::SchemaApi schemas_list POST /v1/tenants/{tenant_id}/schemas/list list schema
Permify::SchemaApi schemas_partial_write PATCH /v1/tenants/{tenant_id}/schemas/partial-write partially update your authorization model
Permify::SchemaApi schemas_read POST /v1/tenants/{tenant_id}/schemas/read read schema
Permify::SchemaApi schemas_write POST /v1/tenants/{tenant_id}/schemas/write write schema
Permify::TenancyApi tenants_create POST /v1/tenants/create create tenant
Permify::TenancyApi tenants_delete DELETE /v1/tenants/{id} delete tenant
Permify::TenancyApi tenants_list POST /v1/tenants/list list tenants
Permify::WatchApi watch_watch POST /v1/tenants/{tenant_id}/watch watch changes

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published