17186 Commits

Author SHA1 Message Date
Jean-Sébastien Herbaux
2b715a6ee9
V4/graphql configuration (#10896)
* Use a scalar to register the i18n locale arg

* Remove useless files & comments

* Use custom config for apollo server & the pagination (better handling of pagination)

* Fix missing strapi variable being transmitted to wrapResolvers/parseMiddlewares

* PR review comments
2021-09-07 11:23:49 +02:00
Convly
e2be869d3b Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-07 11:22:43 +02:00
Alexandre BODIN
76d1ac7ada
Merge pull request #10877 from strapi/v4/migrate-email-upload-plugin
Make email, upload, CM and CTB plugins internal
2021-09-06 13:36:53 +00:00
Pierre Noël
4b30d03ed6 remove possibility to disable an internal plugin 2021-09-06 12:03:52 +02:00
Alexandre BODIN
52bc4642b8
Merge pull request #10868 from strapi/v4/plugin-api/local-plugin-loading
Append strapi.dir to plugin path if relative
2021-09-06 07:56:33 +00:00
Pierre Noël
70eec366f9 make email, upload, CM and CTB plugins internal 2021-09-03 15:24:32 +02:00
Pierre Noël
ce85d3d69d try to resolve as a module first 2021-09-03 10:57:46 +02:00
Pierre Noël
a31e301701 Shorter regex + direct use of resolve 2021-09-02 14:01:13 +02:00
Pierre Noël
13cec4cadb append strapi.dir to plugin path if relative 2021-09-02 12:14:44 +02:00
Alexandre BODIN
c1bc942632
Merge pull request #10846 from strapi/v4/rest-api
v4/rest api
2021-09-02 10:05:17 +02:00
Alexandre BODIN
056f734e1a
Merge pull request #10858 from strapi/v4/plugin-api/migrate-myplugin
Migrate locale plugin "myplugin" to v4
2021-09-02 10:03:15 +02:00
Alexandre Bodin
266dcf5d88 Refactor some code 2021-09-02 09:33:18 +02:00
Alexandre Bodin
23f7cdb7fa Fix typos 2021-09-01 21:13:23 +02:00
Pierre Noël
56ffa3a63f migrate myplugin to v4 2021-09-01 18:38:40 +02:00
Alexandre Bodin
d7bc8bc780 Fix wrong parameter name check 2021-09-01 15:28:42 +02:00
Convly
64d9a2031d Fix releases/v4 merge 2021-09-01 14:28:16 +02:00
Convly
e76e7462b7 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-01 14:10:10 +02:00
Jean-Sébastien Herbaux
357fd163b0
V4/graphql customization (#10850)
* Add basic implementation for the graphql extension service

* Add createPolicyContext in @strapi/utils

* policiesMiddleware implementation for graphql

* wrapResolvers first implementation (authentication, middlewares, policies)

* move the content API schema build from /generators to /content-api. Extract types' register functions into a dedicated folder

* fix schema generation on bootstrap

* update the graphql service file to match new services arch

* fix single type queries

* simplify entity's resolver

* use apollo graphql conventions for resolver's args naming

* use the graphql extension system in i18n to add a locale arg to localized queries & mutations
2021-09-01 12:06:51 +02:00
Alexandre BODIN
1cf79d88b8
Merge pull request #10843 from strapi/v4/rest-api-request-format
[v4] Move request format in core-api
2021-09-01 09:15:20 +02:00
Alexandre Bodin
5d702453a6 Move request format in core-api 2021-08-31 22:22:52 +02:00
Alexandre Bodin
4b81731941 Fix tests 2021-08-31 19:31:32 +02:00
Alexandre Bodin
b781213b01 Implement pagination logic in core api 2021-08-31 19:31:31 +02:00
Alexandre Bodin
b44a552eee Implement REST API pagination with paged or offset and withCount 2021-08-31 19:31:31 +02:00
Alexandre Bodin
7eaa8ae95e Handle sort query param 2021-08-31 19:31:31 +02:00
Alexandre Bodin
df6b7eca1a Implement fields convert query params 2021-08-31 19:31:30 +02:00
Alexandre Bodin
d6dabb6b02 Support booleans for nested populates 2021-08-31 19:31:30 +02:00
Alexandre Bodin
3784cc5b5e Implement rest api populate syntax and Init refactor convert query params for v4 2021-08-31 19:31:29 +02:00
Alexandre Bodin
86961318f0 Init populate parsing 2021-08-31 19:31:29 +02:00
Alexandre Bodin
5a9371b5c3 Suport media format 2021-08-31 19:31:29 +02:00
Alexandre Bodin
68826f7ae0 Transform response relations to use data & meta 2021-08-31 19:31:28 +02:00
Alexandre Bodin
960578133f Cleanup parse multipart 2021-08-31 19:31:28 +02:00
Alexandre BODIN
070d24fe91
Merge pull request #10829 from strapi/v4/plugin-api/extensions
V4/plugin api/extensions
2021-08-31 15:26:27 +02:00
Alexandre Bodin
9b239fc753 Fix router & routes generation 2021-08-31 12:04:03 +02:00
Alexandre Bodin
c591d93829 Use kebabCase for normalizing api & api CT names 2021-08-31 11:51:11 +02:00
Alexandre Bodin
2013164680 Fix wrong router loop 2021-08-31 10:46:50 +02:00
Alexandre Bodin
7259bc54f6 Fix mapValues wrong arguments 2021-08-30 18:44:08 +02:00
Alexandre Bodin
44cf9e161a Load api policies 2021-08-30 17:02:41 +02:00
Alexandre Bodin
8522ef7dfd Add Api load with modules container 2021-08-30 17:02:40 +02:00
Alexandre Bodin
4be69e8bde Init new API loading 2021-08-30 17:02:40 +02:00
Pierre Noël
fc7a94d2b8 add extend function for services, content types and policies 2021-08-30 15:39:04 +02:00
Pierre Noël
9a2fe3c715 fix policy test 2021-08-30 11:00:31 +02:00
Pierre Noël
9362311924 add extend fn to controller registry 2021-08-30 11:00:30 +02:00
Alexandre BODIN
45100abdf7
Merge pull request #10783 from strapi/v4/plop-generators
V4/plop generators
2021-08-28 11:12:42 +02:00
Alexandre Bodin
89b02e871e Org package to be consistent, complete package.json and add missing package files 2021-08-28 10:50:46 +02:00
Alexandre Bodin
526a2ce671 Fix model generator 2021-08-27 22:17:51 +02:00
Alexandre Bodin
3ab4da68ab Update eslintignore 2021-08-27 21:38:49 +02:00
Alexandre BODIN
5df607614c
Merge pull request #10790 from strapi/plop-generators/add-args
add api and plugin prompt arguments
2021-08-27 21:35:09 +02:00
Alexandre Bodin
a2c795b843 Use singular url for single types 2021-08-27 21:07:56 +02:00
Alexandre Bodin
9886c61e7b Fix api generator routes to use single & collection types 2021-08-27 20:44:04 +02:00
Alexandre Bodin
e8fe92b154 Fix missing engines property in package.json (thanks marion) 2021-08-27 19:31:09 +02:00