feat: complete API-driven projects with infrastructure and business acceptance
This commit is contained in:
11
examples/contracts/shared.api
Normal file
11
examples/contracts/shared.api
Normal file
@@ -0,0 +1,11 @@
|
||||
syntax = "v1"
|
||||
|
||||
type Address {
|
||||
City string `json:"city" binding:"required,max=50"`
|
||||
}
|
||||
|
||||
type UserResp {
|
||||
UserID int64 `json:"userId"`
|
||||
Name string `json:"name"`
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
Reference in New Issue
Block a user