Please enable JavaScript.
Coggle requires JavaScript to display documents.
Frontend (Is user logged in (Yes (Add New Contract Form (Fill Form (Check…
Frontend
Is user logged in
Yes
Add New Contract Form
Fill Form
Check For All Form Fields Validations
isValid
No
Show Validation Errors
Yes
Send POST Request to Backend /api/v1/contracts
No
Send To Login Page
Backend
Auth Middleware Checks for token
Token Provided:check:
Is Valid Token?
Yes :check:
StoreContract
Validator Validate Contract Information
Everything Looks Good :smiley:
Information Sent To
ContractController
Controller Assign OwnerId To Contract
Information Sent To
Contract
Model For Storing in Database
1 more item...
Is Document Attached
Yes :check:
1 more item...
No :red_cross:
Is Contract Published To Contracts
Yes :check:
1 more item...
No :red_cross:
Validation Errors :red_cross:
No :red_cross:
Token Not Provided:red_cross:
Throw Error :forbidden: