Skip to content

Commit

Permalink
🔖 (v0.0.3) users and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hadrien Froger committed Dec 1, 2024
1 parent a06bf84 commit d5700b5
Show file tree
Hide file tree
Showing 21 changed files with 4,398 additions and 3,031 deletions.
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ decidim-client::publish:
variables:
CI: 1
before_script:
- apt-get update -y && apt-get install -y jq
- cd contrib/decidim-node-client
- corepack enable
- yarn
Expand All @@ -147,5 +148,6 @@ decidim-client::publish:
- touch .npmrc
- echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/" >> .npmrc
- echo "${CI_API_V4_URL#http*:}/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=\${CI_JOB_TOKEN}" >> .npmrc
- npm publish --non-interactive --registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/
- PACKAGE_VERSION=$(jq -r '.version' package.json);
- npm publish --non-interactive --access=public --tag$PACKAGE_VERSION --registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/
extends: .publication_rules
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.2)
decidim-rest_full (0.0.3)
api-pagination (~> 6.0)
cancancan
decidim-admin (>= 0.28, < 0.30)
Expand Down
3 changes: 2 additions & 1 deletion bin/gen-node-client
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
# Regenerate the openapi spec
yarn gen:openapi-spec
# Regenerate the node client (typescript+axios)
yarn openapi-generator-cli generate -i ./website/static/openapi.json -o ./contrib/decidim-node-client -g typescript-axios --additional-properties=paramNaming=camelCase,axiosVersion=1.7.7
yarn openapi-generator-cli generate -i ./website/static/openapi.json -o ./contrib/decidim-node-client -g typescript-axios --additional-properties=useSingleRequestParameter=true,paramNaming=camelCase,axiosVersion=1.7.7

# Build node client
cd contrib/decidim-node-client
rm -rf ./dist
yarn format
yarn build

1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
namespace :api do
namespace :rest_full do
scope "v#{Decidim::RestFull.major_minor_version}" do
post "/oauth/token", to: "/doorkeeper/tokens#create"
namespace :system do
resources :organizations, only: [:index]
resources :users, only: [:index]
Expand Down
Loading

0 comments on commit d5700b5

Please sign in to comment.