Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Ballerina/campus-feedback-bff/api/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
org = "niroshan"
name = "feedbackBff"
version = "0.1.0"
distribution = "2201.3.0"
distribution = "2201.4.0"

[build-options]
observabilityIncluded = true
1 change: 1 addition & 0 deletions Ballerina/campus-feedback-bff/api/Config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GLOBAL_DATA_USE_AUTH = false
34 changes: 18 additions & 16 deletions Ballerina/campus-feedback-bff/api/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies-toml-version = "2"
[[package]]
org = "ballerina"
name = "auth"
version = "2.5.0"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "jballerina.java"},
Expand All @@ -22,7 +22,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "cache"
version = "3.3.0"
version = "3.4.0"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "jballerina.java"},
Expand All @@ -33,7 +33,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "constraint"
version = "1.0.1"
version = "1.1.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
Expand All @@ -50,7 +50,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "file"
version = "1.5.0"
version = "1.6.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
Expand All @@ -63,7 +63,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "graphql"
version = "1.5.0"
version = "1.6.1"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "file"},
Expand All @@ -77,6 +77,8 @@ dependencies = [
{org = "ballerina", name = "mime"},
{org = "ballerina", name = "oauth2"},
{org = "ballerina", name = "regex"},
{org = "ballerina", name = "task"},
{org = "ballerina", name = "time"},
{org = "ballerina", name = "websocket"}
]
modules = [
Expand All @@ -87,7 +89,7 @@ modules = [
[[package]]
org = "ballerina"
name = "http"
version = "2.5.2"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
Expand Down Expand Up @@ -118,7 +120,7 @@ modules = [
[[package]]
org = "ballerina"
name = "io"
version = "1.3.1"
version = "1.4.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
Expand All @@ -135,7 +137,7 @@ version = "0.0.0"
[[package]]
org = "ballerina"
name = "jwt"
version = "2.5.0"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "cache"},
{org = "ballerina", name = "crypto"},
Expand Down Expand Up @@ -222,7 +224,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "log"
version = "2.5.1"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
Expand All @@ -236,7 +238,7 @@ modules = [
[[package]]
org = "ballerina"
name = "mime"
version = "2.5.1"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
Expand All @@ -246,27 +248,28 @@ dependencies = [
[[package]]
org = "ballerina"
name = "oauth2"
version = "2.5.0"
version = "2.6.1"
dependencies = [
{org = "ballerina", name = "cache"},
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "time"}
{org = "ballerina", name = "time"},
{org = "ballerina", name = "url"}
]

[[package]]
org = "ballerina"
name = "observe"
version = "1.0.6"
version = "1.0.7"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "os"
version = "1.5.0"
version = "1.6.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"}
Expand Down Expand Up @@ -321,7 +324,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "websocket"
version = "2.5.1"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "constraint"},
Expand Down Expand Up @@ -367,4 +370,3 @@ modules = [
{org = "niroshan", packageName = "feedbackBff", moduleName = "feedbackBff"}
]


126 changes: 125 additions & 1 deletion Ballerina/campus-feedback-bff/api/client.bal

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Ballerina/campus-feedback-bff/api/config_types.bal
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import ballerina/graphql;
import ballerina/http;

# Client configuration details.
#

@display {label: "Connection Config"}
public type ConnectionConfig record {|
# Configurations related to HTTP/1.x protocol
Expand All @@ -44,6 +46,7 @@ public type ConnectionConfig record {|
graphql:ProxyConfig proxy?;
# Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
boolean validation = true;
#OAuth2 client configurations
http:OAuth2ClientCredentialsGrantConfig oauth2ClientCredentialsGrantConfig?;
|};

Expand Down
Loading