| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  | tags:
 | 
					
						
							|  |  |  |   - name: 'Users-Permissions - Auth'
 | 
					
						
							|  |  |  |     description: 'Authentication endpoints'
 | 
					
						
							|  |  |  |     externalDocs:
 | 
					
						
							|  |  |  |       description: 'Find out more'
 | 
					
						
							|  |  |  |       url: 'https://docs.strapi.io/developer-docs/latest/plugins/users-permissions.html'
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   - name: 'Users-Permissions - Users & Roles'
 | 
					
						
							|  |  |  |     description: 'Users, roles, and permissions endpoints'
 | 
					
						
							|  |  |  |     externalDocs:
 | 
					
						
							|  |  |  |       description: 'Find out more'
 | 
					
						
							|  |  |  |       url: 'https://docs.strapi.io/developer-docs/latest/plugins/users-permissions.html'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  | paths:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |   /connect/{provider}:
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     get:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |       parameters:
 | 
					
						
							|  |  |  |         - name: provider
 | 
					
						
							|  |  |  |           in: path
 | 
					
						
							|  |  |  |           required: true
 | 
					
						
							|  |  |  |           description: Provider name
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							|  |  |  |             pattern: '.*'
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Login with a provider
 | 
					
						
							|  |  |  |       description: Redirects to provider login before being redirect to /auth/{provider}/callback
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |       responses:
 | 
					
						
							|  |  |  |         301:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |           description: Redirect response
 | 
					
						
							|  |  |  |         default:
 | 
					
						
							|  |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /auth/local:
 | 
					
						
							|  |  |  |     post:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Local login
 | 
					
						
							|  |  |  |       description: Returns a jwt token and user info
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							|  |  |  |               properties:
 | 
					
						
							|  |  |  |                 identifier:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 password:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |             example:
 | 
					
						
							| 
									
										
										
										
											2022-08-10 22:58:41 +03:00
										 |  |  |               identifier: foobar
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |               password: Test1234
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |       responses:
 | 
					
						
							|  |  |  |         200:
 | 
					
						
							|  |  |  |           description: Connection
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-UserRegistration'
 | 
					
						
							|  |  |  |         default:
 | 
					
						
							|  |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /auth/local/register:
 | 
					
						
							|  |  |  |     post:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Register a user
 | 
					
						
							|  |  |  |       description: Returns a jwt token and user info
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							|  |  |  |               properties:
 | 
					
						
							|  |  |  |                 username:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 email:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 password:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |             example:
 | 
					
						
							|  |  |  |               username: foobar
 | 
					
						
							|  |  |  |               email: foo.bar@strapi.io
 | 
					
						
							|  |  |  |               password: Test1234
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |       responses:
 | 
					
						
							|  |  |  |         200:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |           description: Successfull registration
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-UserRegistration'
 | 
					
						
							|  |  |  |         default:
 | 
					
						
							|  |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |   /auth/{provider}/callback:
 | 
					
						
							|  |  |  |     get:
 | 
					
						
							|  |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Default Callback from provider auth
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |       parameters:
 | 
					
						
							|  |  |  |         - name: provider
 | 
					
						
							|  |  |  |           in: path
 | 
					
						
							|  |  |  |           required: true
 | 
					
						
							|  |  |  |           description: Provider name
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							|  |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns a jwt token and user info
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-UserRegistration'
 | 
					
						
							|  |  |  |         default:
 | 
					
						
							|  |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   /auth/forgot-password:
 | 
					
						
							|  |  |  |     post:
 | 
					
						
							|  |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Send rest password email
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							|  |  |  |               properties:
 | 
					
						
							|  |  |  |                 email:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |             example:
 | 
					
						
							|  |  |  |               email: foo.bar@strapi.io
 | 
					
						
							|  |  |  |       responses:
 | 
					
						
							|  |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns ok
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   ok:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |                     type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |                     enum: [true]
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |         default:
 | 
					
						
							|  |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /auth/reset-password:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |     post:
 | 
					
						
							|  |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Rest user password
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |       requestBody:
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							|  |  |  |               properties:
 | 
					
						
							|  |  |  |                 password:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 passwordConfirmation:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 code:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |             example:
 | 
					
						
							|  |  |  |               password: Test1234
 | 
					
						
							|  |  |  |               passwordConfirmation: Test1234
 | 
					
						
							|  |  |  |               code: zertyoaizndoianzodianzdonaizdoinaozdnia
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns a jwt token and user info
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-UserRegistration'
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-02 20:58:37 +02:00
										 |  |  |   /auth/change-password:
 | 
					
						
							| 
									
										
										
										
											2022-08-03 16:46:41 +02:00
										 |  |  |     post:
 | 
					
						
							| 
									
										
										
										
											2022-08-02 20:58:37 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Update user's own password
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |               required:
 | 
					
						
							|  |  |  |                 - password
 | 
					
						
							|  |  |  |                 - currentPassword
 | 
					
						
							|  |  |  |                 - passwordConfirmation
 | 
					
						
							| 
									
										
										
										
											2022-08-02 20:58:37 +02:00
										 |  |  |               properties:
 | 
					
						
							|  |  |  |                 password:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 currentPassword:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 passwordConfirmation:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |       responses:
 | 
					
						
							|  |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns a jwt token and user info
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-UserRegistration'
 | 
					
						
							|  |  |  |         default:
 | 
					
						
							|  |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /auth/email-confirmation:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |     get:
 | 
					
						
							|  |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Confirm user email
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |       parameters:
 | 
					
						
							|  |  |  |         - in: query
 | 
					
						
							|  |  |  |           name: confirmation
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |           description: confirmation token received by email
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |         301:
 | 
					
						
							|  |  |  |           description: Redirects to the configure email confirmation redirect url
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /auth/send-email-confirmation:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |     post:
 | 
					
						
							|  |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Auth
 | 
					
						
							|  |  |  |       summary: Send confirmation email
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |       requestBody:
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							|  |  |  |               properties:
 | 
					
						
							|  |  |  |                 email:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns email and boolean to confirm email was sent
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   email:
 | 
					
						
							|  |  |  |                     type: string
 | 
					
						
							|  |  |  |                   sent:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |                     type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |                     enum: [true]
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   /users-permissions/permissions:
 | 
					
						
							|  |  |  |     get:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |       summary: Get default generated permissions
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns the permissions tree
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   permissions:
 | 
					
						
							|  |  |  |                     $ref: '#/components/schemas/Users-Permissions-PermissionsTree'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 permissions:
 | 
					
						
							|  |  |  |                   api::content-type.content-type:
 | 
					
						
							|  |  |  |                     controllers:
 | 
					
						
							|  |  |  |                       controllerA:
 | 
					
						
							|  |  |  |                         find:
 | 
					
						
							|  |  |  |                           enabled: false
 | 
					
						
							|  |  |  |                           policy: ''
 | 
					
						
							|  |  |  |                         findOne:
 | 
					
						
							|  |  |  |                           enabled: false
 | 
					
						
							|  |  |  |                           policy: ''
 | 
					
						
							|  |  |  |                         create:
 | 
					
						
							|  |  |  |                           enabled: false
 | 
					
						
							|  |  |  |                           policy: ''
 | 
					
						
							|  |  |  |                       controllerB:
 | 
					
						
							|  |  |  |                         find:
 | 
					
						
							|  |  |  |                           enabled: false
 | 
					
						
							|  |  |  |                           policy: ''
 | 
					
						
							|  |  |  |                         findOne:
 | 
					
						
							|  |  |  |                           enabled: false
 | 
					
						
							|  |  |  |                           policy: ''
 | 
					
						
							|  |  |  |                         create:
 | 
					
						
							|  |  |  |                           enabled: false
 | 
					
						
							|  |  |  |                           policy: ''
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /users-permissions/roles:
 | 
					
						
							|  |  |  |     get:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |       summary: List roles
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns list of roles
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   roles:
 | 
					
						
							|  |  |  |                     type: array
 | 
					
						
							|  |  |  |                     items:
 | 
					
						
							|  |  |  |                       allOf:
 | 
					
						
							|  |  |  |                         - $ref: '#/components/schemas/Users-Permissions-Role'
 | 
					
						
							|  |  |  |                         - type: object
 | 
					
						
							|  |  |  |                           properties:
 | 
					
						
							|  |  |  |                             nb_users:
 | 
					
						
							|  |  |  |                               type: number
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 roles:
 | 
					
						
							|  |  |  |                   - id: 1
 | 
					
						
							|  |  |  |                     name: Public
 | 
					
						
							|  |  |  |                     description: Default role given to unauthenticated user.
 | 
					
						
							|  |  |  |                     type: public
 | 
					
						
							|  |  |  |                     createdAt: 2022-05-19T17:35:35.097Z
 | 
					
						
							|  |  |  |                     updatedAt: 2022-05-31T16:05:36.603Z
 | 
					
						
							|  |  |  |                     nb_users: 0
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     post:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |       summary: Create a role
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |         $ref: '#/components/requestBodies/Users-Permissions-RoleRequest'
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns ok if the role was create
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   ok:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |                     type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |                     enum: [true]
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |   /users-permissions/roles/{id}:
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     get:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |       summary: Get a role
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       parameters:
 | 
					
						
							|  |  |  |         - in: path
 | 
					
						
							|  |  |  |           name: id
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           required: true
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           description: role Id
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |         200:
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           description: Returns the role
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   role:
 | 
					
						
							|  |  |  |                     $ref: '#/components/schemas/Users-Permissions-Role'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 role:
 | 
					
						
							|  |  |  |                   id: 1
 | 
					
						
							|  |  |  |                   name: Public
 | 
					
						
							|  |  |  |                   description: Default role given to unauthenticated user.
 | 
					
						
							|  |  |  |                   type: public
 | 
					
						
							|  |  |  |                   createdAt: 2022-05-19T17:35:35.097Z
 | 
					
						
							|  |  |  |                   updatedAt: 2022-05-31T16:05:36.603Z
 | 
					
						
							|  |  |  |                   permissions:
 | 
					
						
							|  |  |  |                     api::content-type.content-type:
 | 
					
						
							|  |  |  |                       controllers:
 | 
					
						
							|  |  |  |                         controllerA:
 | 
					
						
							|  |  |  |                           find:
 | 
					
						
							|  |  |  |                             enabled: true
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |   /users-permissions/roles/{role}:
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     put:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Update a role
 | 
					
						
							|  |  |  |       parameters:
 | 
					
						
							|  |  |  |         - in: path
 | 
					
						
							|  |  |  |           name: role
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           required: true
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           description: role Id
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |         $ref: '#/components/requestBodies/Users-Permissions-RoleRequest'
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns ok if the role was udpated
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   ok:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |                     type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |                     enum: [true]
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     delete:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Delete a role
 | 
					
						
							|  |  |  |       parameters:
 | 
					
						
							|  |  |  |         - in: path
 | 
					
						
							|  |  |  |           name: role
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           required: true
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           description: role Id
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns ok if the role was delete
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   ok:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |                     type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |                     enum: [true]
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   /users:
 | 
					
						
							|  |  |  |     get:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Get list of users
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         200:
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           description: Returns an array of users
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: array
 | 
					
						
							|  |  |  |                 items:
 | 
					
						
							|  |  |  |                   $ref: '#/components/schemas/Users-Permissions-User'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 - id: 9
 | 
					
						
							|  |  |  |                   username: foao@strapi.io
 | 
					
						
							|  |  |  |                   email: foao@strapi.io
 | 
					
						
							|  |  |  |                   provider: local
 | 
					
						
							|  |  |  |                   confirmed: false
 | 
					
						
							|  |  |  |                   blocked: false
 | 
					
						
							|  |  |  |                   createdAt: 2022-06-01T18:32:35.211Z
 | 
					
						
							|  |  |  |                   updatedAt: 2022-06-01T18:32:35.217Z
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     post:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Create a user
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |               required:
 | 
					
						
							|  |  |  |                 - username
 | 
					
						
							|  |  |  |                 - email
 | 
					
						
							|  |  |  |                 - password
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |               properties:
 | 
					
						
							|  |  |  |                 email:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 username:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 password:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |             example:
 | 
					
						
							|  |  |  |               username: foo
 | 
					
						
							|  |  |  |               email: foo@strapi.io
 | 
					
						
							|  |  |  |               password: foo-password
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         201:
 | 
					
						
							|  |  |  |           description: Returns created user info
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 allOf:
 | 
					
						
							|  |  |  |                   - $ref: '#/components/schemas/Users-Permissions-User'
 | 
					
						
							|  |  |  |                   - type: object
 | 
					
						
							|  |  |  |                     properties:
 | 
					
						
							|  |  |  |                       role:
 | 
					
						
							|  |  |  |                         $ref: '#/components/schemas/Users-Permissions-Role'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 id: 1
 | 
					
						
							|  |  |  |                 username: foo
 | 
					
						
							|  |  |  |                 email: foo@strapi.io
 | 
					
						
							|  |  |  |                 provider: local
 | 
					
						
							|  |  |  |                 confirmed: false
 | 
					
						
							|  |  |  |                 blocked: false
 | 
					
						
							|  |  |  |                 createdAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                 updatedAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                 role:
 | 
					
						
							|  |  |  |                   id: 1
 | 
					
						
							|  |  |  |                   name: X
 | 
					
						
							|  |  |  |                   description: Default role given to authenticated user.
 | 
					
						
							|  |  |  |                   type: authenticated
 | 
					
						
							|  |  |  |                   createdAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                   updatedAt: 2022-06-04T07:11:59.551Z
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /users/{id}:
 | 
					
						
							|  |  |  |     get:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Get a user
 | 
					
						
							|  |  |  |       parameters:
 | 
					
						
							|  |  |  |         - in: path
 | 
					
						
							|  |  |  |           name: id
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           required: true
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           description: user Id
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         200:
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           description: Returns a user
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-User'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 id: 1
 | 
					
						
							|  |  |  |                 username: foo
 | 
					
						
							|  |  |  |                 email: foo@strapi.io
 | 
					
						
							|  |  |  |                 provider: local
 | 
					
						
							|  |  |  |                 confirmed: false
 | 
					
						
							|  |  |  |                 blocked: false
 | 
					
						
							|  |  |  |                 createdAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                 updatedAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     put:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Update a user
 | 
					
						
							|  |  |  |       parameters:
 | 
					
						
							|  |  |  |         - in: path
 | 
					
						
							|  |  |  |           name: id
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |           required: true
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           description: user Id
 | 
					
						
							|  |  |  |       requestBody:
 | 
					
						
							|  |  |  |         required: true
 | 
					
						
							|  |  |  |         content:
 | 
					
						
							|  |  |  |           application/json:
 | 
					
						
							|  |  |  |             schema:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |               required:
 | 
					
						
							|  |  |  |                 - username
 | 
					
						
							|  |  |  |                 - email
 | 
					
						
							|  |  |  |                 - password
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |               properties:
 | 
					
						
							|  |  |  |                 email:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 username:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |                 password:
 | 
					
						
							|  |  |  |                   type: string
 | 
					
						
							|  |  |  |             example:
 | 
					
						
							|  |  |  |               username: foo
 | 
					
						
							|  |  |  |               email: foo@strapi.io
 | 
					
						
							|  |  |  |               password: foo-password
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns updated user info
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 allOf:
 | 
					
						
							|  |  |  |                   - $ref: '#/components/schemas/Users-Permissions-User'
 | 
					
						
							|  |  |  |                   - type: object
 | 
					
						
							|  |  |  |                     properties:
 | 
					
						
							|  |  |  |                       role:
 | 
					
						
							|  |  |  |                         $ref: '#/components/schemas/Users-Permissions-Role'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 id: 1
 | 
					
						
							|  |  |  |                 username: foo
 | 
					
						
							|  |  |  |                 email: foo@strapi.io
 | 
					
						
							|  |  |  |                 provider: local
 | 
					
						
							|  |  |  |                 confirmed: false
 | 
					
						
							|  |  |  |                 blocked: false
 | 
					
						
							|  |  |  |                 createdAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                 updatedAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                 role:
 | 
					
						
							|  |  |  |                   id: 1
 | 
					
						
							|  |  |  |                   name: X
 | 
					
						
							|  |  |  |                   description: Default role given to authenticated user.
 | 
					
						
							|  |  |  |                   type: authenticated
 | 
					
						
							|  |  |  |                   createdAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                   updatedAt: 2022-06-04T07:11:59.551Z
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |     delete:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Delete a user
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |       parameters:
 | 
					
						
							|  |  |  |         - in: path
 | 
					
						
							|  |  |  |           name: id
 | 
					
						
							|  |  |  |           required: true
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: string
 | 
					
						
							|  |  |  |           description: user Id
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-09-13 10:30:19 -04:00
										 |  |  |         '200':
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           description: Returns deleted user info
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 allOf:
 | 
					
						
							|  |  |  |                   - $ref: '#/components/schemas/Users-Permissions-User'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 id: 1
 | 
					
						
							|  |  |  |                 username: foo
 | 
					
						
							|  |  |  |                 email: foo@strapi.io
 | 
					
						
							|  |  |  |                 provider: local
 | 
					
						
							|  |  |  |                 confirmed: false
 | 
					
						
							|  |  |  |                 blocked: false
 | 
					
						
							|  |  |  |                 createdAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                 updatedAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |         default:
 | 
					
						
							|  |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /users/me:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |     get:
 | 
					
						
							|  |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Get authenticated user info
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns user info
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-User'
 | 
					
						
							|  |  |  |               example:
 | 
					
						
							|  |  |  |                 id: 1
 | 
					
						
							|  |  |  |                 username: foo
 | 
					
						
							|  |  |  |                 email: foo@strapi.io
 | 
					
						
							|  |  |  |                 provider: local
 | 
					
						
							|  |  |  |                 confirmed: false
 | 
					
						
							|  |  |  |                 blocked: false
 | 
					
						
							|  |  |  |                 createdAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							|  |  |  |                 updatedAt: 2022-05-19T17:35:35.096Z
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  |   /users/count:
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |     get:
 | 
					
						
							|  |  |  |       tags:
 | 
					
						
							|  |  |  |         - Users-Permissions - Users & Roles
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |       summary: Get user count
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |       responses:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |         200:
 | 
					
						
							|  |  |  |           description: Returns a number
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 type: number
 | 
					
						
							|  |  |  |               example: 1
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |         default:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |           description: Error
 | 
					
						
							|  |  |  |           content:
 | 
					
						
							|  |  |  |             application/json:
 | 
					
						
							|  |  |  |               schema:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Error'
 | 
					
						
							| 
									
										
										
										
											2022-06-01 23:12:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | components:
 | 
					
						
							|  |  |  |   schemas:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |     Users-Permissions-Role:
 | 
					
						
							|  |  |  |       type: object
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         id:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           type: number
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |         name:
 | 
					
						
							|  |  |  |           type: string
 | 
					
						
							|  |  |  |         description:
 | 
					
						
							|  |  |  |           type: string
 | 
					
						
							|  |  |  |         type:
 | 
					
						
							|  |  |  |           type: string
 | 
					
						
							|  |  |  |         createdAt:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |           type: string
 | 
					
						
							|  |  |  |           format: date-time
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  |         updatedAt:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |           type: string
 | 
					
						
							|  |  |  |           format: date-time
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:03:55 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |     Users-Permissions-User:
 | 
					
						
							|  |  |  |       type: object
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         id:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |           type: number
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |           example: 1
 | 
					
						
							|  |  |  |         username:
 | 
					
						
							|  |  |  |           type: string
 | 
					
						
							|  |  |  |           example: 'foo.bar'
 | 
					
						
							|  |  |  |         email:
 | 
					
						
							|  |  |  |           type: string
 | 
					
						
							|  |  |  |           example: 'foo.bar@strapi.io'
 | 
					
						
							|  |  |  |         provider:
 | 
					
						
							|  |  |  |           type: string
 | 
					
						
							|  |  |  |           example: 'local'
 | 
					
						
							|  |  |  |         confirmed:
 | 
					
						
							|  |  |  |           type: boolean
 | 
					
						
							|  |  |  |           example: true
 | 
					
						
							|  |  |  |         blocked:
 | 
					
						
							|  |  |  |           type: boolean
 | 
					
						
							|  |  |  |           example: false
 | 
					
						
							|  |  |  |         createdAt:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |           type: string
 | 
					
						
							|  |  |  |           format: date-time
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |           example: '2022-06-02T08:32:06.258Z'
 | 
					
						
							|  |  |  |         updatedAt:
 | 
					
						
							| 
									
										
										
										
											2023-03-08 09:40:35 +05:30
										 |  |  |           type: string
 | 
					
						
							|  |  |  |           format: date-time
 | 
					
						
							| 
									
										
										
										
											2022-06-02 10:22:20 +02:00
										 |  |  |           example: '2022-06-02T08:32:06.267Z'
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     Users-Permissions-UserRegistration:
 | 
					
						
							|  |  |  |       type: object
 | 
					
						
							|  |  |  |       properties:
 | 
					
						
							|  |  |  |         jwt:
 | 
					
						
							|  |  |  |           type: string
 | 
					
						
							|  |  |  |           example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
 | 
					
						
							|  |  |  |         user:
 | 
					
						
							|  |  |  |           $ref: '#/components/schemas/Users-Permissions-User'
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-02 19:41:49 +02:00
										 |  |  |     Users-Permissions-PermissionsTree:
 | 
					
						
							|  |  |  |       type: object
 | 
					
						
							|  |  |  |       additionalProperties:
 | 
					
						
							|  |  |  |         type: object
 | 
					
						
							|  |  |  |         description: every api
 | 
					
						
							|  |  |  |         properties:
 | 
					
						
							|  |  |  |           controllers:
 | 
					
						
							|  |  |  |             description: every controller of the api
 | 
					
						
							|  |  |  |             type: object
 | 
					
						
							|  |  |  |             additionalProperties:
 | 
					
						
							|  |  |  |               type: object
 | 
					
						
							|  |  |  |               additionalProperties:
 | 
					
						
							|  |  |  |                 description: every action of every controller
 | 
					
						
							|  |  |  |                 type: object
 | 
					
						
							|  |  |  |                 properties:
 | 
					
						
							|  |  |  |                   enabled:
 | 
					
						
							|  |  |  |                     type: boolean
 | 
					
						
							|  |  |  |                   policy:
 | 
					
						
							|  |  |  |                     type: string
 | 
					
						
							| 
									
										
										
										
											2022-08-31 13:58:44 +02:00
										 |  |  |   requestBodies:
 | 
					
						
							| 
									
										
										
										
											2022-06-04 09:48:31 +02:00
										 |  |  |     Users-Permissions-RoleRequest:
 | 
					
						
							|  |  |  |       required: true
 | 
					
						
							|  |  |  |       content:
 | 
					
						
							|  |  |  |         application/json:
 | 
					
						
							|  |  |  |           schema:
 | 
					
						
							|  |  |  |             type: object
 | 
					
						
							|  |  |  |             properties:
 | 
					
						
							|  |  |  |               name:
 | 
					
						
							|  |  |  |                 type: string
 | 
					
						
							|  |  |  |               description:
 | 
					
						
							|  |  |  |                 type: string
 | 
					
						
							|  |  |  |               type:
 | 
					
						
							|  |  |  |                 type: string
 | 
					
						
							|  |  |  |               permissions:
 | 
					
						
							|  |  |  |                 $ref: '#/components/schemas/Users-Permissions-PermissionsTree'
 | 
					
						
							|  |  |  |           example:
 | 
					
						
							|  |  |  |             name: foo
 | 
					
						
							|  |  |  |             description: role foo
 | 
					
						
							|  |  |  |             permissions:
 | 
					
						
							|  |  |  |               api::content-type.content-type:
 | 
					
						
							|  |  |  |                 controllers:
 | 
					
						
							|  |  |  |                   controllerA:
 | 
					
						
							|  |  |  |                     find:
 | 
					
						
							|  |  |  |                       enabled: true
 |