Skip to content

Instantly share code, notes, and snippets.

@koriwi
Created December 7, 2018 10:06
Show Gist options
  • Select an option

  • Save koriwi/70456098f0eaee57ef2ea6f219fd9c49 to your computer and use it in GitHub Desktop.

Select an option

Save koriwi/70456098f0eaee57ef2ea6f219fd9c49 to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.0",
"x-api-id": "apizipapp",
"info": {
"version": "1.0.0",
"title": "api.zip.app"
},
"servers": [
{
"url": "https://api.zip.app"
}
],
"paths": {},
"components": {
"schemas": {
"default": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"lastUpdatedBy": {
"type": "string"
},
"lastUpdatedAt": {
"type": "string"
},
"createdBy": {
"type": "string"
},
"createdAt": {
"type": "string"
}
}
},
"project": {
"allOf": [
{
"$ref": "#/components/schemas/default"
},
{
"type": "object",
"required": [
"title"
],
"properties": {
"title": {
"type": "string"
},
"users": {
"type": "array",
"items": {
"$ref": "#/components/schemas/user"
}
}
}
}
]
},
"user": {
"allOf": [
{
"$ref": "#/components/schemas/default"
},
{
"type": "object",
"properties": {
"uid": {
"type": "string"
},
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"displayName": {
"type": "string"
}
},
"required": [
"uid"
]
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment