zomars
42eb7041d4
New linting rules
2023-02-16 14:01:40 -07:00
Syed Ali Shahbaz
f02cfc9990
Swagger definition general fixes ( #237 )
...
This PR addresses definition errors currently residing within our
swagger doc.
~DISCLAIMER: There is still an error for our DELETE booking call, as
open API standard doesn't expect the DELETE call to contain a request
body, but we are requiring it in the way it currently works. Perhaps we
should move those to Query Parameters instead. Thoughts @zomars @emrysal
?~
It was taken care of by @leog and the docs are now updated as per the
endpoint
<img width="247" alt="image"
src="https://user-images.githubusercontent.com/52925846/217799706-21b7c21d-696b-4e20-a682-c8a949694b61.png ">
<img width="629" alt="image"
src="https://user-images.githubusercontent.com/52925846/217799842-c903c23a-0b0d-4208-a3e9-01a682eeff97.png ">
---------
Co-authored-by: Leo Giovanetti <hello@leog.me>
Co-authored-by: Omar López <zomars@me.com>
2023-02-13 12:52:11 +00:00
zomars
dc0a6eaa32
Export for typecheck
2023-02-08 10:56:00 -07:00
Syed Ali Shahbaz
279c3da21f
Improves Booking docs in swagger ( #219 )
...
Adds definition to booking swagger definition, and fixes user _post
definition example
2023-02-07 08:41:08 -07:00
Leo Giovanetti
6cec8620cb
Pagination issue fixed, total added ( #227 )
...
Fixes #217 .
2023-01-18 12:49:31 -07:00
zomars
41d22c8ccb
Fixes for console
2022-12-05 16:09:19 -07:00
zomars
e15f6abc9b
Fixes
2022-12-02 15:22:56 -07:00
zomars
055699f612
Various import and type fixes
2022-11-25 06:58:21 -07:00
Syed Ali Shahbaz
8e25b9244c
Fix deployment failure due to prettier (extra spaces) ( #214 )
...
Simply removes extra spaces which are causing prettier to fail
deployment, introduced in the PR for USER swagger doc update
2022-11-21 10:49:55 +05:30
Syed Ali Shahbaz
bbaa8ae5e7
Adds more definition to USER swagger ( #212 )
...
Adds more definition for documentation for the USER endpoints
2022-11-18 12:20:15 -07:00
Alex van Andel
51bc3d93c1
user: Add email and username, remove bufferTime,startTime,endTime ( #202 )
...
Co-authored-by: zomars <zomars@me.com>
2022-11-17 11:35:06 -07:00
zomars
d93fd26a1e
Removed unused methods middleware
2022-10-21 13:30:09 -06:00
Alex van Andel
f4d52b88a4
Changed req to query to allow passing in userId, not session ( #197 )
2022-10-20 18:27:01 +01:00
zomars
07b011424f
Formatting
2022-10-15 10:54:22 -06:00
zomars
00bd908916
Fixes permission errors
2022-10-14 17:41:28 -06:00
Agusti Fernandez Pardo
76d0b0c1ee
Update pages/api/users/_get.ts
...
remove console log statement
Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:34:26 +02:00
Agusti Fernandez Pardo
f6faa8bc46
Update pages/api/users/_get.ts
...
remove console log
Co-authored-by: Omar López <zomars@me.com>
2022-07-08 19:33:17 +02:00
Agusti Fernandez Pardo
a63b623a7d
feat: teamId availability in API
2022-07-05 20:12:14 +02:00
Agusti Fernandez Pardo
be2647790c
feat: refactor teams and add team availability
2022-06-30 00:01:14 +02:00
Agusti Fernandez Pardo
561271f3f6
fix: isAdmin from req, no isAdminGuard everywhere
2022-06-24 00:53:15 +02:00
Agusti Fernandez Pardo
61c82eb197
fix: address issues raised in preview PR
2022-06-24 00:26:40 +02:00
Agusti Fernandez Pardo
04b9b71310
fix: userId not, id remove templates stall
2022-06-24 00:09:23 +02:00
Agusti Fernandez Pardo
60688e2e91
fix: make isAdmin require req.prisma too
2022-06-18 03:03:13 +02:00
Agusti Fernandez Pardo
5b28e9ec1c
fix: main merging issues
2022-06-18 02:16:15 +02:00
Agusti Fernandez Pardo
6e68671c2a
fix: merge w main
2022-06-18 01:52:37 +02:00
Agusti Fernandez Pardo
8b87cde733
fix: _delete missing userId rename
2022-06-16 01:48:29 +02:00
Agusti Fernandez Pardo
11f3d411b3
fix: rename users id to users userId to easier availability sharing _get endpoint
2022-06-16 00:18:40 +02:00
Agusti Fernandez Pardo
4389288e69
feat: adds users/id/availability endpoint
2022-06-16 00:04:04 +02:00
zomars
1ab81fb8ee
Better error on user delete
2022-06-14 14:51:23 -06:00
zomars
0f72a9084a
Splits user endpoints by method
2022-06-14 14:35:15 -06:00
zomars
7d0cef065f
Refactors user id endpoint
2022-06-14 14:10:59 -06:00
zomars
58e1ea9bf6
User endpoint refactoring
2022-06-14 14:08:58 -06:00
Agusti Fernandez Pardo
180e925bed
feat: dynamic prisma almost working
2022-06-08 18:52:25 +02:00
Agusti Fernandez Pardo
e407a16766
feat: dynamic prisma
2022-06-06 18:17:10 +02:00
Agusti Fernandez Pardo
187d5f2b10
docs: add some comments
2022-05-31 18:53:41 +02:00
Agusti Fernandez Pardo
9459b9048d
feat: Admin API users manegement endpoints
2022-05-31 18:33:01 +02:00
Agusti Fernandez Pardo
0ca9748674
fix: dont throw err on bad query
2022-05-18 14:27:30 +02:00
Agusti Fernandez Pardo
5aa0b37443
fix build and pass lint
2022-05-17 19:33:18 +02:00
Agusti Fernandez Pardo
72444792bc
fix: disable admin only post endpoint for users as makes build fail until impersonate PR merged into web main/prod
2022-05-11 16:01:35 +02:00
Agusti Fernandez Pardo
1f2b59c18d
feat: adds users post endpoint for admin only
2022-05-05 05:02:59 +02:00
Agusti Fernandez Pardo
b572e4b0ff
fix: move all req to deconstructed
2022-04-30 20:53:19 +02:00
Agusti Fernandez Pardo
005d0f8040
fix: channels removed
2022-04-30 19:46:04 +02:00
Agusti Fernandez Pardo
9bb0f82075
fix: improve comments, no anys
2022-04-29 17:29:57 +02:00
Agusti Fernandez Pardo
d6c34a8e51
fix: remove empty lines
2022-04-29 01:54:21 +02:00
Agusti Fernandez Pardo
bb28680413
fixes all openapi spect issues, removes json-schema auto-generated moving to manual examples
2022-04-29 01:38:40 +02:00
Agusti Fernandez Pardo
e52af0bbef
fix: post / patch attendees docs w examples
2022-04-27 19:25:36 +02:00
Agusti Fernandez Pardo
6997606a4c
fix: moves to pick and separates availabilities
2022-04-26 22:23:33 +02:00
Agusti Fernandez Pardo
fa30b52988
remove v1 from specs
2022-04-26 21:56:59 +02:00
Agusti Fernandez Pardo
804fe27458
fix availabilites validations
2022-04-25 03:12:33 +02:00
Agusti Fernandez Pardo
4c022d5d07
feat: adds full validations for users endpoint
2022-04-24 23:56:25 +02:00