Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
48c365b
fix: Missing Test IDs for PDF components(#2988)
MihajlovicMilos1995 May 7, 2025
c1a9020
Merge pull request #230 from IntersectMBO/fix/Missing-Test-IDs-for-PD…
MihajlovicMilos1995 May 7, 2025
410c808
Add Authentication and User Edit Endpoints to Swagger Docs and Api do…
nebojsajsimic May 7, 2025
a69cc70
Fix (blank screen apper when change proposal type)
nebojsajsimic May 7, 2025
1c04aef
Merge pull request #231 from IntersectMBO/Fix(Add-Authentication-and-…
nebojsact May 7, 2025
90dbae4
Merge pull request #232 from IntersectMBO/Fix---Blank-screen-when-cha…
nebojsact May 7, 2025
97c77f0
fix: Bug: "Other" Contracting Method Details Not Displayed in Review …
MihajlovicMilos1995 May 7, 2025
729c306
Merge pull request #233 from IntersectMBO/fix/other-contracting-metho…
MihajlovicMilos1995 May 7, 2025
e57f8cb
fix: check for name instead of id for other
MihajlovicMilos1995 May 8, 2025
a7b4ba0
Merge pull request #234 from IntersectMBO/fix/-fix-check-for-name-ins…
MihajlovicMilos1995 May 8, 2025
add515d
Added snapshoot report generator
nebojsajsimic May 8, 2025
edcccc3
Refresh token docs
nebojsajsimic May 8, 2025
17164fc
fix/ Username Modal Incorrectly Pops Up on Wallet Disconnect State in…
MihajlovicMilos1995 May 8, 2025
9807f90
Merge pull request #235 from IntersectMBO/Snapshoot-Report-Genarator
nebojsact May 8, 2025
4657605
Merge pull request #236 from IntersectMBO/fix/Username-Modal-Incorrec…
MihajlovicMilos1995 May 8, 2025
d367141
Update version number to 26
nebojsact May 8, 2025
8527adb
Docker file update to 20-alpine
nebojsajsimic May 8, 2025
5f613c6
trigger build
nebojsajsimic May 8, 2025
f4612d2
Merge pull request #237 from IntersectMBO/Report-Comments-fix
nebojsact May 8, 2025
48d2574
comment fix 2
nebojsajsimic May 8, 2025
e33e1b5
Merge pull request #238 from IntersectMBO/Report-Comments-fix
nebojsact May 8, 2025
da64cb2
Check for existing proposal
nebojsajsimic May 9, 2025
fec7c6a
Merge pull request #239 from IntersectMBO/Report-Comments-fix
nebojsact May 9, 2025
f466452
Merge pull request #240 from IntersectMBO/dev
nebojsact May 9, 2025
65cb73a
Merge pull request #241 from IntersectMBO/qa
nebojsact May 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# path: ./Dockerfile
FROM node:alpine
FROM node:20-alpine
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev nasm bash vips-dev
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
Expand Down
2 changes: 1 addition & 1 deletion backend/config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = ({ env }) => ({
config: {
info: { version: "1.0.0" }, // Set the documentation version
"x-strapi-config": {
plugins: [], // Additional plugin configuration (currently empty)
plugins: ["users-permissions"], // Additional plugin configuration (currently empty)
},
},
},
Expand Down
234 changes: 234 additions & 0 deletions backend/public/api-docs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ info:

openapi: 3.0.0
tags:
- name: Authentication
description: User authentication and authorization
- name: Users
description: User management operations
- name: Proposal
- name: Proposal vote
- name: Comment
Expand Down Expand Up @@ -97,6 +101,8 @@ tags:
x-tagGroups:
- name: Endpoints
tags:
- Authentication
- Users
- Proposal
- Proposal content
- Proposal submition
Expand All @@ -108,6 +114,8 @@ x-tagGroups:
- Wallet type
- name: Models
tags:
- Authentication
- Users
- proposal_model
- proposal_content_model
- proposal_submition_model
Expand Down Expand Up @@ -152,6 +160,66 @@ components:
type: string
details:
type: object
AuthChallengeResponse:
type: object
properties:
message:
type: string
AuthLocalRequest:
type: object
properties:
identifier:
type: string
signedMessage:
$ref: '#/components/schemas/SignedMessage'
description: Signed message
SignedMessage:
type: object
properties:
key:
type: string
signature:
type: string
expectedSignedMessage:
type: string
AuthLocalResponse:
type: object
properties:
status:
type: string
enum:
- Authenticated
- Failed
- NotFound
jwt:
type: string
user:
$ref: '#/components/schemas/User'
User:
type: object
properties:
id:
type: number | string
username:
type: string
email:
type: string
provider:
type: string
confirmed:
type: boolean
blocked:
type: boolean
govtool_username:
type: string
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
is_validated:
type: boolean
CommentRequest:
type: object
required:
Expand Down Expand Up @@ -1083,7 +1151,173 @@ components:
$ref: '#/components/schemas/WalletTypeResponseDataObject'
meta:
type: object
RefreshToken:
type: object
properties:
jwt:
type: string
refreshToken:
type: string
paths:
/auth/challenge:
get:
security:
- none: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AuthChallengeResponse'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Authentication
parameters:
- name: identifier
in: query
description: Identifier
deprecated: false
required: true
schema:
type: string
operationId: get/auth/challenge
summary: Get authentication challenge
description: |
Get authentication challenge
/auth/local:
post:
security:
- none: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AuthLocalResponse'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Authentication
parameters: []
operationId: post/auth/local
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AuthLocalRequest'
summary: Login
/token/refresh:
post:
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/RefreshToken'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Authentication
parameters: []
operationId: post/token/refresh
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RefreshToken'
summary: Refresh token
/users/{id}:
put:
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Users
parameters:
- name: id
in: path
description: ''
deprecated: false
required: true
schema:
type: number
operationId: Update user
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/User'
/comments:
get:
responses:
Expand Down
Loading