-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add persists code samples for ballerina bff #3
Add persists code samples for ballerina bff #3
Conversation
persists/backend_server/server.bal
Outdated
}; | ||
|
||
// Example: http://localhost:9090/sales/orders | ||
isolated resource function post orders(Order orderEntry) returns http:Ok|http:InternalServerError|http:BadRequest|error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we sending both http:InternalServerError
and error
here? My suggestion is to stick with one here and use that pattern for all resource functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated, Please check.
I think http:InternalServerError
is the best option.
But, In the L14
and L34
, those resource functions returns error
to keep the simplicity.
Other resource functions returns http:InternalServerError
.
persistently-store-data-using-Ballerina/frontend_server/src/layouts/dashboard/side-nav-item.js
Outdated
Show resolved
Hide resolved
persistently-store-data-using-Ballerina/frontend_server/src/layouts/dashboard/side-nav.js
Outdated
Show resolved
Hide resolved
persistently-store-data-using-Ballerina/backend_server/server.bal
Outdated
Show resolved
Hide resolved
persistently-store-data-using-Ballerina/backend_server/server.bal
Outdated
Show resolved
Hide resolved
persistently-store-data-using-Ballerina/backend_server/server.bal
Outdated
Show resolved
Hide resolved
persistently-store-data-using-Ballerina/backend_server/server.bal
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the Ballerina code
Add code samples related to
ballerina-persists
module for ballerina backend to frontend(bff).