sw34
40a48c9612
Rest api sparse fieldsets ( #2252 )
2025-09-29 18:24:51 -07:00
Lukas Kahwe Smith
8a2725b4dc
feat: support natural keys in the API ( #2188 )
2025-08-08 17:08:28 +08:00
Olup
a93d73da16
feat(openapi): add ordering and pagination to RPC findMany endpoints ( #2207 )
2025-08-06 23:13:54 +08:00
Yiming Cao
f835eb5c42
chore(openapi): test case for model name mapping ( #2192 )
2025-07-19 12:10:58 +08:00
Yiming Cao
4d75919a2f
chore(api): more test cases for mapped model names ( #2190 )
2025-07-19 10:33:06 +08:00
Lukas Kahwe Smith
f2c272598d
feat: add ability to map model names in the URLS/JSON response ( #2187 )
...
Co-authored-by: Tobias Brugger <tobias.brugger@bfh.ch>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-07-18 21:51:19 +08:00
Yiming Cao
401f45d5a0
fix(rest): support json equality filtering ( #2088 )
2025-04-15 15:56:52 -07:00
Yiming Cao
002e132a6c
fix(rest): multiple relation id filter values are not properly split ( #2085 )
2025-04-14 20:00:14 -07:00
Yiming Cao
42341b6ad7
fix(server-rest): filters at different hierarchies are not properly combined ( #2054 )
2025-04-02 22:51:22 -07:00
Yiming
3ee50d35a2
fix(server): return an object without primary data for delete route ( #1938 )
2025-01-06 19:46:48 +08:00
Yiming
ea72e9c837
chore: bump prisma dependency to 6.0.x ( #1896 )
2024-12-03 08:08:12 +08:00
Thomas Sunde Nielsen
545898bd93
fix(openapi): bugfix for compound id create and update ( #1855 )
2024-11-26 09:30:57 -08:00
Thomas Sunde Nielsen
caac46c15a
feat(server): upsert support for rest api handler ( #1863 )
2024-11-26 09:29:58 -08:00
Thomas Sunde Nielsen
c344f77941
Improve working with entities related to entities that uses compound ids ( #1801 )
...
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2024-10-25 09:04:49 -07:00
Thomas Sunde Nielsen
8638b26021
Include relationships in REST result from creates and updates ( #1798 )
2024-10-22 10:20:00 -07:00
ymc9
4fa960f0da
fix test
2024-10-18 20:51:45 -07:00
ymc9
2f192be35d
fix: add missing await in test
2024-10-18 20:34:30 -07:00
ymc9
0154a61f26
chore: rename option
2024-10-18 20:27:40 -07:00
Thomas Sunde Nielsen
507431484a
Fixes based on coderabbit review
2024-10-18 12:53:38 +02:00
Thomas Sunde Nielsen
c002fa247f
Expose urlSegmentNameCharSet option
2024-10-18 10:57:19 +02:00
ymc9
7c5940b47a
a few fixes:
...
- Update test to use postgres db
- Changes url pattern option from `segmentNameCharset` to `segmentValueCharset`
- Made sure ID key sent to Prisma is always joined with '_' instead of user-configured divider. I've renamed methods for clarity.
2024-10-17 11:53:27 -07:00
Thomas Sunde Nielsen
e127e0498c
Make REST API ID divider configurable
2024-10-17 15:24:18 +02:00
Thomas Sunde Nielsen
b0de9c331f
Make idDivider configurable
2024-10-17 14:59:02 +02:00
Yiming
4fc4cf7446
fix(server): rest handler not returning correct id when model with compound id is read as a relation ( #1784 )
2024-10-16 12:37:15 -07:00
Thomas Sunde Nielsen
8cbda73b55
RESTApiHandler support compound ids (@@id) ( #1754 )
2024-10-07 08:45:26 -07:00
Yiming
fdbc8cf493
fix(api): support filtering with comma-separated values in rest handler ( #1620 )
2024-07-27 21:30:16 -07:00
Yiming
00250ea9de
chore(perm-checker): rename filter clause to where ( #1413 )
2024-05-08 06:15:14 +08:00
Yiming
0aa6ee961b
feat: implementing permission checker ( #1411 )
2024-05-07 22:38:27 +08:00
Yiming
420df87bf1
merge v2 to dev ( #1281 )
...
Co-authored-by: Augustin <43639468+Azzerty23@users.noreply.github.com>
Co-authored-by: Jonathan Stevens <jonathan.stevens@resnovas.com>
Co-authored-by: Jonathan S <jonathan.stevens@eventiva.co.uk>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ErikMCM <70036542+ErikMCM@users.noreply.github.com>
Co-authored-by: Jason Kleinberg <ustice@gmail.com>
Co-authored-by: Jonathan S <punk.gift9475@alias.org.uk>
Co-authored-by: Jiasheng <jiashengguo@outlook.com>
2024-04-24 21:19:41 +08:00
Yiming
b60627c167
fix(zod): add coercion call when generating schema for DateTime field ( #1068 )
2024-03-01 10:32:02 -08:00
Yiming
fc50deb6e7
feat: add "loadPath" options to runtime API and server adapter options ( #696 )
2023-09-18 12:41:15 -07:00
Yiming
b5da998b7f
feat: include raw zod errors in response ( #691 )
2023-09-14 18:58:19 -07:00
Yiming
b44976dee5
chore: remove aux fields (unused since a few release ago) ( #662 )
2023-09-01 10:07:26 +08:00
Yiming
d8ba05e55c
chore: add new "enhance" API to runtime with optimization ( #601 )
2023-07-21 21:01:46 +08:00
Yiming
fc16008ba2
fix: nullify field instead of reject when an optional relation field is not readable ( #588 )
2023-07-19 12:59:44 +08:00
Yiming
b0d9154270
feat: support Prisma v5 ( #587 )
2023-07-18 22:56:53 +08:00
Yiming
46fec666c3
feat: always use superjson to serialize/deserialize in the api layer ( #585 )
2023-07-17 18:29:22 +08:00
Yiming
b804625301
chore: add test for total count in rest api ( #537 )
2023-07-03 11:12:22 +08:00
Yiming
2280f83cd7
feature: a better "zod" plugin ( #521 )
2023-06-30 15:25:53 +08:00
Yiming
4b389fb648
fix: rest api should return error reason ( #507 )
2023-06-21 19:53:28 +08:00
Yiming
ccfb2b088c
feat: options for logging queries sent to prisma ( #488 )
2023-06-14 11:00:09 +08:00
Yiming
21affec12d
fix: rest-api, wrong links generated for to-one relationship ( #481 )
2023-06-12 12:56:18 +08:00
Yiming
dd6be9509c
fix: issue with connecting multiple relations ( #450 )
2023-06-03 13:56:14 +08:00
Yiming
2855647510
fix: open-api issues ( #446 )
2023-06-02 09:00:58 +08:00
Yiming
764ff2ab50
fix: misc fixes about server adapters and more tests ( #431 )
2023-05-26 18:15:16 +09:00
Yiming
abaa145c21
refactor: refactor server package ( #427 )
2023-05-23 05:59:54 +09:00
Yiming
53716c99c3
feat: implementing sveltekit adapter and refactor server package ( #418 )
2023-05-18 17:05:39 +09:00
Yiming
52f44c5ee7
feat: implement filter operators in restful service ( #411 )
2023-05-12 15:56:15 -07:00
Yiming
f07ccdded0
feat: RESTful style server API handler ( #405 )
...
Co-authored-by: Jawad <jawad.stouli@gmail.com>
2023-05-09 20:00:38 -07:00