clients/kratos/ruby/lib/ory-kratos-client/api/v0alpha1_api.rb
# Perform Logout for APIs, Services, Apps, ...
# Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when the Ory Session Token has been revoked already before.  If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned.  This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.
# @param submit_self_service_logout_flow_without_browser_body [SubmitSelfServiceLogoutFlowWithoutBrowserBody] 
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Perform Logout for APIs, Services, Apps,
Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when the Ory Session Token has been revoked already before.  If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned.  This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.
Perform Logout for APIs Services Apps Use this endpoint to log out an identity using an Ory Session Token . If the Ory Session Token was successfully revoked the server returns a 204 No Content response . A 204 No Content response is also sent when the Ory Session Token has been revoked already before . If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned . This endpoint does not remove any HTTP Cookies - use the Browser - Based Self - Service Logout Flow instead .
def submit_self_service_logout_flow_without_browser_with_http_info(submit_self_service_logout_flow_without_browser_body, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: V0alpha1Api.submit_self_service_logout_flow_without_browser ...'
      end
      if @api_client.config.client_side_validation && submit_self_service_logout_flow_without_browser_body.nil?
        fail ArgumentError, "Missing the required parameter 'submit_self_service_logout_flow_without_browser_body' when calling V0alpha1Api.submit_self_service_logout_flow_without_browser"
      end
      local_var_path = '/self-service/logout/api'
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_self_service_logout_flow_without_browser_body)
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || []
      new_options = opts.merge(
        :operation => :"V0alpha1Api.submit_self_service_logout_flow_without_browser",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: V0alpha1Api#submit_self_service_logout_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def submit_self_service_logout_flow_without_browser_with_http_info ( submit_self_service_logout_flow_without_browser_body , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: V0alpha1Api.submit_self_service_logout_flow_without_browser ...' end if @api_client . config . client_side_validation && submit_self_service_logout_flow_without_browser_body . nil? fail ArgumentError , "Missing the required parameter 'submit_self_service_logout_flow_without_browser_body' when calling V0alpha1Api.submit_self_service_logout_flow_without_browser" end local_var_path = '/self-service/logout/api' query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] || @api_client . object_to_http_body ( submit_self_service_logout_flow_without_browser_body ) return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ ] new_options = opts . merge ( :operation => :" V0alpha1Api.submit_self_service_logout_flow_without_browser " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: V0alpha1Api#submit_self_service_logout_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Perform Logout for APIs, Services, Apps, ...
Use this endpoint to log out an identity using an Ory Session Token.
Perform Logout for APIs Services Apps ... Use this endpoint to log out an identity using an Ory Session Token .
# verify the required parameter 'submit_self_service_logout_flow_without_browser_body' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
submit_self_service_logout_flow_without_browser_body
<not_specific>
opts
<not_specific>
<not_specific>
None
<not_specific>
opts the optional parameters
opts the optional parameters