Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a developer I want the JSON Schema definition of the output in the metadata section of the response. #3

Open
Kalimaha opened this issue Sep 17, 2015 · 0 comments

Comments

@Kalimaha
Copy link
Member

For instance the service groupsanddomains will present the following:

"metadata": {
   "targetSchema":{
      "type":"object",
      "properties":{
         "metadata":{
            "type":"object",
            "title":"Metadata",
            "description":"Metadata for the 'groupsanddomains' service."
         },
         "data":{
            "type":"array",
            "title":"Data",
            "description":"Data for the 'groupsanddomains' service.",
            "items":{
               "type":"object",
               "title":"Domain",
               "description":"FAOSTAT domain.",
               "properties":{
                  "GroupCode":{
                     "$ref":"#/definitions/code"
                  },
                  "GroupNameE":{
                     "$ref":"#/definitions/label"
                  },
                  "DomainCode":{
                     "$ref":"#/definitions/code"
                  },
                  "DomainNameE":{
                     "$ref":"#/definitions/label"
                  },
                  "Ord":{
                     "$ref":"#/definitions/ord"
                  }
               }
            }
         }
      }
   }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant