Commit 814e4ac0 authored by JessonChan's avatar JessonChan

rename the docsSepc to docs_spec

parent 52083de7
...@@ -23,8 +23,8 @@ type ResourceListing struct { ...@@ -23,8 +23,8 @@ type ResourceListing struct {
APIVersion string `json:"apiVersion"` APIVersion string `json:"apiVersion"`
SwaggerVersion string `json:"swaggerVersion"` // e.g 1.2 SwaggerVersion string `json:"swaggerVersion"` // e.g 1.2
// BasePath string `json:"basePath"` obsolete in 1.1 // BasePath string `json:"basePath"` obsolete in 1.1
APIs []APIRef `json:"apis"` APIs []APIRef `json:"apis"`
Infos Infomation `json:"info"` Info Information `json:"info"`
} }
// APIRef description the api path and description // APIRef description the api path and description
...@@ -33,8 +33,8 @@ type APIRef struct { ...@@ -33,8 +33,8 @@ type APIRef struct {
Description string `json:"description"` Description string `json:"description"`
} }
// Infomation show the API Infomation // Information show the API Information
type Infomation struct { type Information struct {
Title string `json:"title,omitempty"` Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"` Description string `json:"description,omitempty"`
Contact string `json:"contact,omitempty"` Contact string `json:"contact,omitempty"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment