Skip to content

Instantly share code, notes, and snippets.

@oliyh
Created September 25, 2015 14:24
Show Gist options
  • Save oliyh/848f6aa7526643978233 to your computer and use it in GitHub Desktop.
Save oliyh/848f6aa7526643978233 to your computer and use it in GitHub Desktop.
{"swagger":"2.0","info":{"title":"Swagger API","version":"0.0.1"},"produces":["application/json"],"consumes":["application/json"],
"paths":{"/ab":{"get":{"parameters":[{"in":"body","name":"SchemaB","description":"","required":true,"schema":{"$ref":"#/definitions/SchemaA"}}],"
responses":{"default":{"description":""}}}},
"/cb":{"get":{"parameters":[{"in":"body","name":"SchemaB","description":"","required":true,"schema":{"$ref":"#/definitions/SchemaC"}}],
"responses":{"default":{"description":""}}}}},
"definitions":{"SchemaA":{"type":"object","properties":{"a":{"type":"string"}},"required":["a"]},
"SchemaB":{"type":"object","properties":{"b":{"type":"string"}},"required":["b"]},
"SchemaC":{"type":"object","properties":{"c":{"type":"string"}},"required":["c"]}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment