IAPI represents interface for api, includes API and APIPath.
| 12 | // IAPI represents interface for api, |
| 13 | // includes API and APIPath. |
| 14 | type IAPI interface { |
| 15 | GetPath() string |
| 16 | ToAPI() (*API, error) |
| 17 | } |
| 18 | |
| 19 | type API struct { |
| 20 | Name string `json:"name" yaml:"name"` // required |