Sha256: 6d0b6d15f373290e1e8ab0d9b792252d4aef25675ad643108491fdb46136cf21
Contents?: true
Size: 724 Bytes
Versions: 7
Compression:
Stored size: 724 Bytes
Contents
# frozen_string_literal: true # @resource Tenants # # All resources in the system are relative to a particular tenant application. PUNK.route('tenants') do require_session! # Retrieve the list of tenants visible to the authenticated user. # @path [GET] /tenants # @response [Array<Tenant>] 200 List of tenants # @method get # @example 200 # [{ # "id": "deadbeef-1234-5678-abcd-000000000000", # "name": "Cool Tenant", # "icon": "https://some.image/url" # }] # @example 401 # { # "message": "You are not authenticated.", # "errors": ["Cannot find session"] # } # # route: GET /tenants get do perform PUNK::ListTenantsAction, user: current_user end end
Version data entries
7 entries across 7 versions & 1 rubygems