diff --git a/go/models/deploy.go b/go/models/deploy.go index aa70ef15..38e744cd 100644 --- a/go/models/deploy.go +++ b/go/models/deploy.go @@ -36,6 +36,10 @@ type Deploy struct { */ CommitURL string `json:"commit_url,omitempty"` + /* context + */ + Context string `json:"context,omitempty"` + /* created at */ CreatedAt string `json:"created_at,omitempty"` @@ -60,10 +64,18 @@ type Deploy struct { */ ID string `json:"id,omitempty"` + /* locked + */ + Locked bool `json:"locked,omitempty"` + /* name */ Name string `json:"name,omitempty"` + /* published at + */ + PublishedAt string `json:"published_at,omitempty"` + /* required */ Required []string `json:"required,omitempty"` @@ -76,6 +88,10 @@ type Deploy struct { */ ReviewID float64 `json:"review_id,omitempty"` + /* review url + */ + ReviewURL string `json:"review_url,omitempty"` + /* screenshot url */ ScreenshotURL string `json:"screenshot_url,omitempty"` @@ -88,6 +104,10 @@ type Deploy struct { */ Skipped bool `json:"skipped,omitempty"` + /* ssl url + */ + SslURL string `json:"ssl_url,omitempty"` + /* state */ State string `json:"state,omitempty"` diff --git a/swagger.yml b/swagger.yml index c3d22a19..cb2b1147 100644 --- a/swagger.yml +++ b/swagger.yml @@ -1221,6 +1221,8 @@ definitions: type: string url: type: string + ssl_url: + type: string admin_url: type: string deploy_url: @@ -1257,8 +1259,17 @@ definitions: updated_at: type: string format: dateTime + published_at: + type: string + format: dateTime title: type: string + context: + type: string + locked: + type: boolean + review_url: + type: string deployFiles: type: object properties: diff --git a/ui/swagger.json b/ui/swagger.json index 3cc970de..61444436 100644 --- a/ui/swagger.json +++ b/ui/swagger.json @@ -1 +1 @@ -{"consumes":["application/json"],"produces":["application/json"],"schemes":["https"],"swagger":"2.0","info":{"title":"Netlify's API definition","version":"0.1.0"},"host":"api.netlify.com","basePath":"/api/v1","paths":{"/builds/{build_id}":{"get":{"operationId":"getSiteBuild","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/build"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"build_id","in":"path","required":true}]},"/builds/{build_id}/log":{"post":{"operationId":"updateSiteBuildLog","responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"build_id","in":"path","required":true},{"name":"msg","in":"body","required":true,"schema":{"$ref":"#/definitions/buildLogMsg"}}]},"/deploy_keys":{"post":{"consumes":["application/json"],"operationId":"createDeployKey","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deployKey"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}":{"get":{"operationId":"getDeploy","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/files/{path}":{"put":{"consumes":["application/octet-stream"],"operationId":"uploadDeployFile","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true},{"type":"string","name":"path","in":"path","required":true},{"name":"file_body","in":"body","required":true,"schema":{"type":"string","format":"binary"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/file"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/functions/{name}":{"put":{"consumes":["application/octet-stream"],"operationId":"uploadDeployFunction","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true},{"type":"string","name":"name","in":"path","required":true},{"name":"file_body","in":"body","required":true,"schema":{"type":"string","format":"binary"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/function"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/lock":{"post":{"operationId":"lockDeploy","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/unlock":{"post":{"operationId":"unlockDeploy","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/forms":{"get":{"operationId":"listForms","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/form"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/forms/{form_id}/submissions":{"get":{"operationId":"listFormSubmissions","parameters":[{"type":"string","name":"form_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/submission"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/hooks":{"get":{"operationId":"listHooksBySiteId","parameters":[{"type":"string","name":"site_id","in":"query","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/hook"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"consumes":["application/json"],"operationId":"createHookBySiteId","parameters":[{"type":"string","name":"site_id","in":"query","required":true},{"name":"hook","in":"body","required":true,"schema":{"$ref":"#/definitions/hook"}}],"responses":{"201":{"description":"OK","schema":{"$ref":"#/definitions/hook"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/hooks/types":{"get":{"operationId":"listHookTypes","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/hookType"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/hooks/{hook_id}":{"delete":{"operationId":"deleteHookBySiteId","parameters":[{"type":"string","name":"hook_id","in":"path","required":true}],"responses":{"204":{"description":"No content"}}}},"/oauth/tickets":{"post":{"operationId":"createTicket","parameters":[{"type":"string","name":"client_id","in":"query","required":true}],"responses":{"201":{"description":"ok","schema":{"$ref":"#/definitions/ticket"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/oauth/tickets/{ticket_id}":{"get":{"operationId":"showTicket","parameters":[{"type":"string","name":"ticket_id","in":"path","required":true}],"responses":{"200":{"description":"ok","schema":{"$ref":"#/definitions/ticket"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/oauth/tickets/{ticket_id}/exchange":{"post":{"operationId":"exchangeTicket","parameters":[{"type":"string","name":"ticket_id","in":"path","required":true}],"responses":{"201":{"description":"ok","schema":{"$ref":"#/definitions/accessToken"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites":{"get":{"operationId":"listSites","parameters":[{"type":"string","name":"name","in":"query"},{"type":"string","name":"filter","in":"query"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/site"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"consumes":["application/json"],"operationId":"createSite","parameters":[{"name":"site","in":"body","required":true,"schema":{"$ref":"#/definitions/siteSetup"}},{"type":"boolean","name":"configure_dns","in":"query"}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/site"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}":{"get":{"operationId":"getSite","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/site"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"delete":{"operationId":"deleteSite","responses":{"200":{"description":"OK"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"patch":{"consumes":["application/json"],"operationId":"updateSite","parameters":[{"name":"site","in":"body","required":true,"schema":{"$ref":"#/definitions/siteSetup"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/site"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/assets":{"get":{"operationId":"listSiteAssets","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/asset"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"operationId":"createSiteAsset","parameters":[{"type":"string","name":"name","in":"query","required":true},{"type":"integer","format":"int64","name":"size","in":"query","required":true},{"type":"string","name":"content_type","in":"query","required":true},{"type":"string","name":"visibility","in":"query"}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/assetSignature"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/assets/{asset_id}":{"get":{"operationId":"getSiteAssetInfo","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/asset"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"updateSiteAsset","parameters":[{"type":"string","name":"state","in":"query","required":true}],"responses":{"200":{"description":"Updated","schema":{"$ref":"#/definitions/asset"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"delete":{"operationId":"deleteSiteAsset","responses":{"204":{"description":"Deleted"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"asset_id","in":"path","required":true}]},"/sites/{site_id}/assets/{asset_id}/public_signature":{"get":{"operationId":"getSiteAssetPublicSignature","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/assetPublicSignature"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"asset_id","in":"path","required":true}]},"/sites/{site_id}/builds":{"get":{"operationId":"listSiteBuilds","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/build"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/deploys":{"get":{"operationId":"listSiteDeploys","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/deploy"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"operationId":"createSiteDeploy","parameters":[{"type":"string","name":"title","in":"query"},{"name":"deploy","in":"body","required":true,"schema":{"$ref":"#/definitions/deployFiles"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/deploys/{deploy_id}":{"get":{"operationId":"getSiteDeploy","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"updateSiteDeploy","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"deploy_id","in":"path","required":true},{"name":"deploy","in":"body","required":true,"schema":{"$ref":"#/definitions/deployFiles"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/deploys/{deploy_id}/restore":{"post":{"operationId":"restoreSiteDeploy","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/dns":{"get":{"operationId":"getDNSForSite","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/dnsZone"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"configureDNSForSite","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/dnsZone"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/files":{"get":{"operationId":"listSiteFiles","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/file"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/files/{file_path}":{"get":{"operationId":"getSiteFileByPathName","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"file_path","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/file"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/forms":{"get":{"operationId":"listSiteForms","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/form"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/metadata":{"get":{"operationId":"getSiteMetadata","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/metadata"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"updateSiteMetadata","parameters":[{"name":"metadata","in":"body","required":true,"schema":{"$ref":"#/definitions/metadata"}}],"responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/snippets":{"get":{"operationId":"listSiteSnippets","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/snippet"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"consumes":["application/json"],"operationId":"createSiteSnippet","parameters":[{"name":"snippet","in":"body","required":true,"schema":{"$ref":"#/definitions/snippet"}}],"responses":{"201":{"description":"OK","schema":{"$ref":"#/definitions/snippet"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/snippets/{snippet_id}":{"get":{"operationId":"getSiteSnippet","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/snippet"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"consumes":["application/json"],"operationId":"updateSiteSnippet","parameters":[{"name":"snippet","in":"body","required":true,"schema":{"$ref":"#/definitions/snippet"}}],"responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"delete":{"operationId":"deleteSiteSnippet","responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"snippet_id","in":"path","required":true}]},"/sites/{site_id}/ssl":{"get":{"operationId":"showSiteTLSCertificate","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/sniCertificate"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"operationId":"provisionSiteTLSCertificate","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"certificate","in":"query"},{"type":"string","name":"key","in":"query"},{"type":"string","name":"ca_certificates","in":"query"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/sniCertificate"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/submissions":{"get":{"operationId":"listSiteSubmissions","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/submission"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}}},"definitions":{"accessToken":{"type":"object","properties":{"access_token":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"id":{"type":"string"},"user_email":{"type":"string"},"user_id":{"type":"string"}}},"asset":{"type":"object","properties":{"content_type":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"creator_id":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"site_id":{"type":"string"},"size":{"type":"integer","format":"int64"},"state":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"},"url":{"type":"string"},"visibility":{"type":"string"}}},"assetForm":{"type":"object","properties":{"fields":{"type":"object","additionalProperties":{"type":"string"}},"url":{"type":"string"}}},"assetPublicSignature":{"type":"object","properties":{"url":{"type":"string"}}},"assetSignature":{"type":"object","properties":{"asset":{"type":"object","$ref":"#/definitions/asset"},"form":{"type":"object","$ref":"#/definitions/assetForm"}}},"build":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"deploy_id":{"type":"string"},"done":{"type":"boolean"},"error":{"type":"string"},"id":{"type":"string"},"sha":{"type":"string"}}},"buildLogMsg":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"}}},"deploy":{"type":"object","properties":{"admin_url":{"type":"string"},"branch":{"type":"string"},"build_id":{"type":"string"},"commit_ref":{"type":"string"},"commit_url":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"deploy_ssl_url":{"type":"string"},"deploy_url":{"type":"string"},"draft":{"type":"boolean"},"error_message":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"required":{"type":"array","items":{"type":"string"}},"required_functions":{"type":"array","items":{"type":"string"}},"review_id":{"type":"number"},"screenshot_url":{"type":"string"},"site_id":{"type":"string"},"skipped":{"type":"boolean"},"state":{"type":"string"},"title":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"},"url":{"type":"string"},"user_id":{"type":"string"}}},"deployFiles":{"type":"object","properties":{"async":{"type":"boolean"},"draft":{"type":"boolean"},"files":{"type":"object"},"functions":{"type":"object"}}},"deployKey":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"id":{"type":"string"},"public_key":{"type":"string"}}},"dnsRecord":{"type":"object","properties":{"hostname":{"type":"string"},"id":{"type":"string"},"priority":{"type":"integer","format":"int64"},"ttl":{"type":"integer","format":"int64"},"type":{"type":"string"},"value":{"type":"string"}}},"dnsZone":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"records":{"type":"array","items":{"$ref":"#/definitions/dnsRecord"}}}},"error":{"type":"object","required":["message"],"properties":{"code":{"type":"integer","format":"int64"},"message":{"type":"string","x-nullable":false}}},"file":{"type":"object","properties":{"id":{"type":"string"},"mime_type":{"type":"string"},"path":{"type":"string"},"sha":{"type":"string"},"size":{"type":"integer","format":"int64"}}},"form":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"fields":{"type":"array","items":{"type":"object"}},"id":{"type":"string"},"name":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"site_id":{"type":"string"},"submission_count":{"type":"integer","format":"int32"}}},"function":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sha":{"type":"string"}}},"hook":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"data":{"type":"object"},"disabled":{"type":"boolean"},"event":{"type":"string"},"id":{"type":"string"},"site_id":{"type":"string"},"type":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"}}},"hookType":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object"}},"name":{"type":"string"}}},"metadata":{"type":"object"},"repoSetup":{"type":"object","properties":{"allowed_branches":{"type":"array","items":{"type":"string"}},"branch":{"type":"string"},"cmd":{"type":"string"},"deploy_key_id":{"type":"string"},"dir":{"type":"string"},"id":{"type":"integer"},"private_logs":{"type":"boolean"},"provider":{"type":"string"},"public_repo":{"type":"boolean"},"repo":{"type":"string"}}},"site":{"type":"object","properties":{"account_name":{"type":"string"},"account_slug":{"type":"string"},"admin_url":{"type":"string"},"build_settings":{"type":"object","properties":{"allowed_branches":{"type":"array","items":{"type":"string"}},"branch":{"type":"string"},"cmd":{"type":"string"},"dir":{"type":"string"}}},"created_at":{"type":"string","format":"dateTime"},"custom_domain":{"type":"string"},"deploy_hook":{"type":"string"},"deploy_url":{"type":"string"},"domain_aliases":{"type":"array","items":{"type":"string"}},"force_ssl":{"type":"boolean"},"git_provider":{"type":"string"},"id":{"type":"string"},"managed_dns":{"type":"boolean"},"name":{"type":"string"},"notification_email":{"type":"string"},"password":{"type":"string"},"plan":{"type":"string"},"published_deploy":{"$ref":"#/definitions/deploy"},"screenshot_url":{"type":"string"},"session_id":{"type":"string"},"ssl":{"type":"boolean"},"ssl_url":{"type":"string"},"state":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"},"url":{"type":"string"},"user_id":{"type":"string"}}},"siteSetup":{"allOf":[{"$ref":"#/definitions/site"},{"properties":{"repo":{"$ref":"#/definitions/repoSetup"}}}]},"sniCertificate":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"domains":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string","format":"dateTime"},"state":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"}}},"snippet":{"type":"object","properties":{"general":{"type":"string"},"general_position":{"type":"string"},"goal":{"type":"string"},"goal_position":{"type":"string"},"id":{"type":"integer","format":"int32"},"site_id":{"type":"string"},"title":{"type":"string"}}},"submission":{"type":"object","properties":{"body":{"type":"string"},"company":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"data":{"type":"object"},"email":{"type":"string"},"first_name":{"type":"string"},"id":{"type":"string"},"last_name":{"type":"string"},"name":{"type":"string"},"number":{"type":"integer","format":"int32"},"site_url":{"type":"string"},"summary":{"type":"string"}}},"ticket":{"type":"object","properties":{"authorized":{"type":"boolean"},"client_id":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"id":{"type":"string"}}}},"securityDefinitions":{"netlifyAuth":{"type":"oauth2","flow":"implicit","authorizationUrl":"https://app.netlify.com/authorize"}},"security":[{"netlifyAuth":[]}]} \ No newline at end of file +{"consumes":["application/json"],"produces":["application/json"],"schemes":["https"],"swagger":"2.0","info":{"title":"Netlify's API definition","version":"0.1.0"},"host":"api.netlify.com","basePath":"/api/v1","paths":{"/builds/{build_id}":{"get":{"operationId":"getSiteBuild","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/build"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"build_id","in":"path","required":true}]},"/builds/{build_id}/log":{"post":{"operationId":"updateSiteBuildLog","responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"build_id","in":"path","required":true},{"name":"msg","in":"body","required":true,"schema":{"$ref":"#/definitions/buildLogMsg"}}]},"/deploy_keys":{"post":{"consumes":["application/json"],"operationId":"createDeployKey","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deployKey"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}":{"get":{"operationId":"getDeploy","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/files/{path}":{"put":{"consumes":["application/octet-stream"],"operationId":"uploadDeployFile","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true},{"type":"string","name":"path","in":"path","required":true},{"name":"file_body","in":"body","required":true,"schema":{"type":"string","format":"binary"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/file"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/functions/{name}":{"put":{"consumes":["application/octet-stream"],"operationId":"uploadDeployFunction","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true},{"type":"string","name":"name","in":"path","required":true},{"name":"file_body","in":"body","required":true,"schema":{"type":"string","format":"binary"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/function"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/lock":{"post":{"operationId":"lockDeploy","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/deploys/{deploy_id}/unlock":{"post":{"operationId":"unlockDeploy","parameters":[{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/forms":{"get":{"operationId":"listForms","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/form"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/forms/{form_id}/submissions":{"get":{"operationId":"listFormSubmissions","parameters":[{"type":"string","name":"form_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/submission"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/hooks":{"get":{"operationId":"listHooksBySiteId","parameters":[{"type":"string","name":"site_id","in":"query","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/hook"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"consumes":["application/json"],"operationId":"createHookBySiteId","parameters":[{"type":"string","name":"site_id","in":"query","required":true},{"name":"hook","in":"body","required":true,"schema":{"$ref":"#/definitions/hook"}}],"responses":{"201":{"description":"OK","schema":{"$ref":"#/definitions/hook"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/hooks/types":{"get":{"operationId":"listHookTypes","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/hookType"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/hooks/{hook_id}":{"delete":{"operationId":"deleteHookBySiteId","parameters":[{"type":"string","name":"hook_id","in":"path","required":true}],"responses":{"204":{"description":"No content"}}}},"/oauth/tickets":{"post":{"operationId":"createTicket","parameters":[{"type":"string","name":"client_id","in":"query","required":true}],"responses":{"201":{"description":"ok","schema":{"$ref":"#/definitions/ticket"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/oauth/tickets/{ticket_id}":{"get":{"operationId":"showTicket","parameters":[{"type":"string","name":"ticket_id","in":"path","required":true}],"responses":{"200":{"description":"ok","schema":{"$ref":"#/definitions/ticket"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/oauth/tickets/{ticket_id}/exchange":{"post":{"operationId":"exchangeTicket","parameters":[{"type":"string","name":"ticket_id","in":"path","required":true}],"responses":{"201":{"description":"ok","schema":{"$ref":"#/definitions/accessToken"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites":{"get":{"operationId":"listSites","parameters":[{"type":"string","name":"name","in":"query"},{"type":"string","name":"filter","in":"query"}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/site"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"consumes":["application/json"],"operationId":"createSite","parameters":[{"name":"site","in":"body","required":true,"schema":{"$ref":"#/definitions/siteSetup"}},{"type":"boolean","name":"configure_dns","in":"query"}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/site"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}":{"get":{"operationId":"getSite","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/site"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"delete":{"operationId":"deleteSite","responses":{"200":{"description":"OK"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"patch":{"consumes":["application/json"],"operationId":"updateSite","parameters":[{"name":"site","in":"body","required":true,"schema":{"$ref":"#/definitions/siteSetup"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/site"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/assets":{"get":{"operationId":"listSiteAssets","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/asset"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"operationId":"createSiteAsset","parameters":[{"type":"string","name":"name","in":"query","required":true},{"type":"integer","format":"int64","name":"size","in":"query","required":true},{"type":"string","name":"content_type","in":"query","required":true},{"type":"string","name":"visibility","in":"query"}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/assetSignature"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/assets/{asset_id}":{"get":{"operationId":"getSiteAssetInfo","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/asset"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"updateSiteAsset","parameters":[{"type":"string","name":"state","in":"query","required":true}],"responses":{"200":{"description":"Updated","schema":{"$ref":"#/definitions/asset"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"delete":{"operationId":"deleteSiteAsset","responses":{"204":{"description":"Deleted"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"asset_id","in":"path","required":true}]},"/sites/{site_id}/assets/{asset_id}/public_signature":{"get":{"operationId":"getSiteAssetPublicSignature","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/assetPublicSignature"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"asset_id","in":"path","required":true}]},"/sites/{site_id}/builds":{"get":{"operationId":"listSiteBuilds","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/build"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/deploys":{"get":{"operationId":"listSiteDeploys","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/deploy"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"operationId":"createSiteDeploy","parameters":[{"type":"string","name":"title","in":"query"},{"name":"deploy","in":"body","required":true,"schema":{"$ref":"#/definitions/deployFiles"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/deploys/{deploy_id}":{"get":{"operationId":"getSiteDeploy","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"updateSiteDeploy","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"deploy_id","in":"path","required":true},{"name":"deploy","in":"body","required":true,"schema":{"$ref":"#/definitions/deployFiles"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/deploys/{deploy_id}/restore":{"post":{"operationId":"restoreSiteDeploy","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"deploy_id","in":"path","required":true}],"responses":{"201":{"description":"Created","schema":{"$ref":"#/definitions/deploy"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/dns":{"get":{"operationId":"getDNSForSite","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/dnsZone"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"configureDNSForSite","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/dnsZone"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/files":{"get":{"operationId":"listSiteFiles","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/file"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/files/{file_path}":{"get":{"operationId":"getSiteFileByPathName","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"file_path","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/file"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/forms":{"get":{"operationId":"listSiteForms","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/form"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/metadata":{"get":{"operationId":"getSiteMetadata","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/metadata"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"operationId":"updateSiteMetadata","parameters":[{"name":"metadata","in":"body","required":true,"schema":{"$ref":"#/definitions/metadata"}}],"responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/snippets":{"get":{"operationId":"listSiteSnippets","responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/snippet"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"consumes":["application/json"],"operationId":"createSiteSnippet","parameters":[{"name":"snippet","in":"body","required":true,"schema":{"$ref":"#/definitions/snippet"}}],"responses":{"201":{"description":"OK","schema":{"$ref":"#/definitions/snippet"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true}]},"/sites/{site_id}/snippets/{snippet_id}":{"get":{"operationId":"getSiteSnippet","responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/snippet"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"put":{"consumes":["application/json"],"operationId":"updateSiteSnippet","parameters":[{"name":"snippet","in":"body","required":true,"schema":{"$ref":"#/definitions/snippet"}}],"responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"delete":{"operationId":"deleteSiteSnippet","responses":{"204":{"description":"No content"},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"snippet_id","in":"path","required":true}]},"/sites/{site_id}/ssl":{"get":{"operationId":"showSiteTLSCertificate","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/sniCertificate"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}},"post":{"operationId":"provisionSiteTLSCertificate","parameters":[{"type":"string","name":"site_id","in":"path","required":true},{"type":"string","name":"certificate","in":"query"},{"type":"string","name":"key","in":"query"},{"type":"string","name":"ca_certificates","in":"query"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/sniCertificate"}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}},"/sites/{site_id}/submissions":{"get":{"operationId":"listSiteSubmissions","parameters":[{"type":"string","name":"site_id","in":"path","required":true}],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"$ref":"#/definitions/submission"}}},"default":{"description":"error","schema":{"$ref":"#/definitions/error"}}}}}},"definitions":{"accessToken":{"type":"object","properties":{"access_token":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"id":{"type":"string"},"user_email":{"type":"string"},"user_id":{"type":"string"}}},"asset":{"type":"object","properties":{"content_type":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"creator_id":{"type":"string"},"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"site_id":{"type":"string"},"size":{"type":"integer","format":"int64"},"state":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"},"url":{"type":"string"},"visibility":{"type":"string"}}},"assetForm":{"type":"object","properties":{"fields":{"type":"object","additionalProperties":{"type":"string"}},"url":{"type":"string"}}},"assetPublicSignature":{"type":"object","properties":{"url":{"type":"string"}}},"assetSignature":{"type":"object","properties":{"asset":{"type":"object","$ref":"#/definitions/asset"},"form":{"type":"object","$ref":"#/definitions/assetForm"}}},"build":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"deploy_id":{"type":"string"},"done":{"type":"boolean"},"error":{"type":"string"},"id":{"type":"string"},"sha":{"type":"string"}}},"buildLogMsg":{"type":"object","properties":{"error":{"type":"boolean"},"message":{"type":"string"}}},"deploy":{"type":"object","properties":{"admin_url":{"type":"string"},"branch":{"type":"string"},"build_id":{"type":"string"},"commit_ref":{"type":"string"},"commit_url":{"type":"string"},"context":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"deploy_ssl_url":{"type":"string"},"deploy_url":{"type":"string"},"draft":{"type":"boolean"},"error_message":{"type":"string"},"id":{"type":"string"},"locked":{"type":"boolean"},"name":{"type":"string"},"published_at":{"type":"string","format":"dateTime"},"required":{"type":"array","items":{"type":"string"}},"required_functions":{"type":"array","items":{"type":"string"}},"review_id":{"type":"number"},"review_url":{"type":"string"},"screenshot_url":{"type":"string"},"site_id":{"type":"string"},"skipped":{"type":"boolean"},"ssl_url":{"type":"string"},"state":{"type":"string"},"title":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"},"url":{"type":"string"},"user_id":{"type":"string"}}},"deployFiles":{"type":"object","properties":{"async":{"type":"boolean"},"draft":{"type":"boolean"},"files":{"type":"object"},"functions":{"type":"object"}}},"deployKey":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"id":{"type":"string"},"public_key":{"type":"string"}}},"dnsRecord":{"type":"object","properties":{"hostname":{"type":"string"},"id":{"type":"string"},"priority":{"type":"integer","format":"int64"},"ttl":{"type":"integer","format":"int64"},"type":{"type":"string"},"value":{"type":"string"}}},"dnsZone":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"records":{"type":"array","items":{"$ref":"#/definitions/dnsRecord"}}}},"error":{"type":"object","required":["message"],"properties":{"code":{"type":"integer","format":"int64"},"message":{"type":"string","x-nullable":false}}},"file":{"type":"object","properties":{"id":{"type":"string"},"mime_type":{"type":"string"},"path":{"type":"string"},"sha":{"type":"string"},"size":{"type":"integer","format":"int64"}}},"form":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"fields":{"type":"array","items":{"type":"object"}},"id":{"type":"string"},"name":{"type":"string"},"paths":{"type":"array","items":{"type":"string"}},"site_id":{"type":"string"},"submission_count":{"type":"integer","format":"int32"}}},"function":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sha":{"type":"string"}}},"hook":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"data":{"type":"object"},"disabled":{"type":"boolean"},"event":{"type":"string"},"id":{"type":"string"},"site_id":{"type":"string"},"type":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"}}},"hookType":{"type":"object","properties":{"events":{"type":"array","items":{"type":"string"}},"fields":{"type":"array","items":{"type":"object"}},"name":{"type":"string"}}},"metadata":{"type":"object"},"repoSetup":{"type":"object","properties":{"allowed_branches":{"type":"array","items":{"type":"string"}},"branch":{"type":"string"},"cmd":{"type":"string"},"deploy_key_id":{"type":"string"},"dir":{"type":"string"},"id":{"type":"integer"},"private_logs":{"type":"boolean"},"provider":{"type":"string"},"public_repo":{"type":"boolean"},"repo":{"type":"string"}}},"site":{"type":"object","properties":{"account_name":{"type":"string"},"account_slug":{"type":"string"},"admin_url":{"type":"string"},"build_settings":{"type":"object","properties":{"allowed_branches":{"type":"array","items":{"type":"string"}},"branch":{"type":"string"},"cmd":{"type":"string"},"dir":{"type":"string"}}},"created_at":{"type":"string","format":"dateTime"},"custom_domain":{"type":"string"},"deploy_hook":{"type":"string"},"deploy_url":{"type":"string"},"domain_aliases":{"type":"array","items":{"type":"string"}},"force_ssl":{"type":"boolean"},"git_provider":{"type":"string"},"id":{"type":"string"},"managed_dns":{"type":"boolean"},"name":{"type":"string"},"notification_email":{"type":"string"},"password":{"type":"string"},"plan":{"type":"string"},"published_deploy":{"$ref":"#/definitions/deploy"},"screenshot_url":{"type":"string"},"session_id":{"type":"string"},"ssl":{"type":"boolean"},"ssl_url":{"type":"string"},"state":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"},"url":{"type":"string"},"user_id":{"type":"string"}}},"siteSetup":{"allOf":[{"$ref":"#/definitions/site"},{"properties":{"repo":{"$ref":"#/definitions/repoSetup"}}}]},"sniCertificate":{"type":"object","properties":{"created_at":{"type":"string","format":"dateTime"},"domains":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string","format":"dateTime"},"state":{"type":"string"},"updated_at":{"type":"string","format":"dateTime"}}},"snippet":{"type":"object","properties":{"general":{"type":"string"},"general_position":{"type":"string"},"goal":{"type":"string"},"goal_position":{"type":"string"},"id":{"type":"integer","format":"int32"},"site_id":{"type":"string"},"title":{"type":"string"}}},"submission":{"type":"object","properties":{"body":{"type":"string"},"company":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"data":{"type":"object"},"email":{"type":"string"},"first_name":{"type":"string"},"id":{"type":"string"},"last_name":{"type":"string"},"name":{"type":"string"},"number":{"type":"integer","format":"int32"},"site_url":{"type":"string"},"summary":{"type":"string"}}},"ticket":{"type":"object","properties":{"authorized":{"type":"boolean"},"client_id":{"type":"string"},"created_at":{"type":"string","format":"dateTime"},"id":{"type":"string"}}}},"securityDefinitions":{"netlifyAuth":{"type":"oauth2","flow":"implicit","authorizationUrl":"https://app.netlify.com/authorize"}},"security":[{"netlifyAuth":[]}]} \ No newline at end of file