-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refact(model): seperate model with differentschema
- Loading branch information
Showing
25 changed files
with
236 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
syntax = "v1" | ||
|
||
info( | ||
title: "Provider Demo Open API of BrainX" | ||
desc: "This is a api of Open API in Artisan Cloud" | ||
author: "Matrix-X" | ||
email: "[email protected]" | ||
version: "v1" | ||
) | ||
|
||
@server( | ||
group: openapi/provider/brainx | ||
prefix: /openapi/v1/provider/brainx | ||
middleware: OpenAPIJWTAuth | ||
) | ||
|
||
service PowerX { | ||
@doc "hello world api for provider demo" | ||
@handler HelloWorld | ||
get /hello-world returns (HelloWorldResponse) | ||
|
||
@doc "timeout api for provider demo" | ||
@handler EchoLongTime | ||
post /echo-long-time (EchoLongTimeRequest) returns (EchoLongTimeResponse) | ||
} | ||
|
||
|
||
|
||
type ( | ||
HelloWorldResponse { | ||
Message string `json:"message"` | ||
} | ||
|
||
EchoLongTimeRequest { | ||
Timeout int `json:"timeout"` | ||
} | ||
EchoLongTimeResponse { | ||
Message string `json:"message"` | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.