Skip to content

Add AWS AppConfig API Data Source #758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions server/api-service/api-examples.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### login?
POST http://localhost:8080/api/auth/form/login
Content-Type: application/json

{
"register": false,
"loginId": "test@test.com",
"password": "test1234",
"source": "EMAIL"
}

### get apps
GET http://localhost:8080/api/applications/list

### Send POST request with json body
POST http://localhost:8080/api/applications
Content-Type: application/json

{
"orgId": "65ea883d248b9d61b5ec8eaf",
"name": "testingapi2",
"appUrlName": "thisIsASlug"
}
2 changes: 2 additions & 0 deletions server/node-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@aws-sdk/client-appconfig": "^3.533.0",
"@aws-sdk/client-appconfigdata": "^3.533.0",
"@aws-sdk/client-athena": "^3.333.0",
"@aws-sdk/client-dynamodb": "^3.332.0",
"@aws-sdk/client-lambda": "^3.332.0",
Expand Down
31 changes: 31 additions & 0 deletions server/node-service/src/plugins/appconfig/dataSourceConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { ConfigToType } from "lowcoder-sdk/dataSource";

const dataSourceConfig = {
type: "dataSource",
params: [
{
key: "region",
type: "textInput",
label: "Region",
rules: [{ required: true, message: "Please input the AWS Region" }],
defaultValue: "us-west-1",
},
{
key: "accessKey",
label: "Access key ID",
type: "textInput",
placeholder: "<Your Access key ID>",
rules: [{ required: true, message: "Please input the Access Key ID" }],
},
{
key: "secretKey",
label: "Secret key",
type: "password",
rules: [{ required: true, message: "Please input the Secret Key" }],
},
],
} as const;

export default dataSourceConfig;

export type DataSourceDataType = ConfigToType<typeof dataSourceConfig>;
Loading