Add dynamic handler management #13
|
@ -22,12 +22,12 @@ type Server struct {
|
||||||
|
|
||||||
// Service represents a service definition (from api.json)
|
// Service represents a service definition (from api.json)
|
||||||
type Service struct {
|
type Service struct {
|
||||||
Method string `json:"method"`
|
Method string `json:"method"`
|
||||||
Pattern string `json:"path"`
|
Pattern string `json:"path"`
|
||||||
Scope [][]string `json:"scope"`
|
Scope [][]string `json:"scope"`
|
||||||
Description string `json:"info"`
|
Description string `json:"info"`
|
||||||
Input map[string]*Parameter `json:"in"`
|
Input map[string]*Parameter `json:"in"`
|
||||||
Output map[string]interface{} `json:"out"`
|
Output map[string]*Parameter `json:"out"`
|
||||||
|
|
||||||
// references to url parameters
|
// references to url parameters
|
||||||
// format: '/uri/{param}'
|
// format: '/uri/{param}'
|
||||||
|
|
Loading…
Reference in New Issue