Skip to content

Commit

Permalink
fix(Strapi Node): Add support for Strapi v4
Browse files Browse the repository at this point in the history
* 🐛 Fix get all operation for v4

* 🔨 Fix create operation

* 🔨 Fix update operation

* 🔨 Fix delete operation

* 🔨 Fix get operation

* 🔨 Fix Return All

* 👕 Fix nodelinter issues

* ⚡ Add Credential Test

* 🔨 Code improvement

* 👕 Fix lint issue

* Removed extra /api from Get All on v4

Co-authored-by: Jan Oberhauser <[email protected]>
Co-authored-by: Jonathan Bennetts <[email protected]>
  • Loading branch information
3 people committed Mar 12, 2022
1 parent c11edb2 commit 2a3cbf3
Show file tree
Hide file tree
Showing 5 changed files with 287 additions and 186 deletions.
236 changes: 118 additions & 118 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions packages/nodes-base/credentials/StrapiApi.credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,24 @@ export class StrapiApi implements ICredentialType {
default: '',
placeholder: 'https://api.example.com',
},
{
displayName: 'API Version',
name: 'apiVersion',
default: 'v3',
type: 'options',
description: 'The version of api to be used',
options: [
{
name: 'Version 4',
value: 'v4',
description: 'API version supported by Strapi 4',
},
{
name: 'Version 3',
value: 'v3',
description: 'API version supported by Strapi 3',
},
],
},
];
}
Loading

0 comments on commit 2a3cbf3

Please sign in to comment.