Skip to content

Commit

Permalink
🔖 (0.0.4) Release new features for api
Browse files Browse the repository at this point in the history
- introspect: get details of your token
- impersonate by user id: use decidim user id to impersonate a user.
  It's a safer option that `username` in general
  • Loading branch information
Hadrien Froger committed Dec 8, 2024
1 parent 7256675 commit b7112b0
Show file tree
Hide file tree
Showing 7 changed files with 977 additions and 981 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
decidim-rest_full (0.0.3)
decidim-rest_full (0.0.4)
api-pagination (~> 6.0)
cancancan
decidim-admin (>= 0.28, < 0.30)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ module Decidim
module Api
module RestFull
class IntrospectController < ApplicationController
before_action do
doorkeeper_authorize!
end

# Introspect current token
def show
render json: {
Expand Down
2 changes: 1 addition & 1 deletion contrib/decidim-node-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@octree/decidim-sdk",
"version": "0.0.3",
"version": "0.0.4",
"description": "Typescript-fetch client for Decidim Restfull APi",
"keywords": [],
"license": "AGPL-3.0-only",
Expand Down
2 changes: 1 addition & 1 deletion lib/decidim/rest_full/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Decidim
module RestFull
def self.version
"0.0.3" # DO NOT UPDATE MANUALLY
"0.0.4" # DO NOT UPDATE MANUALLY
end

def self.major_minor_version
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "website",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down
14 changes: 7 additions & 7 deletions website/static/api-docs.html

Large diffs are not rendered by default.

1,932 changes: 966 additions & 966 deletions website/static/openapi.json

Large diffs are not rendered by default.

0 comments on commit b7112b0

Please sign in to comment.