{"swagger":"2.0","info":{"version":"0.4.4.0 (f9e770b)","title":"PostgREST API","description":"This is a dynamic API generated by PostgREST"},"host":"0.0.0.0:3000","basePath":"/","schemes":["http"],"consumes":["application/json","application/vnd.pgrst.object+json","text/csv"],"produces":["application/json","application/vnd.pgrst.object+json","text/csv"],"paths":{"/":{"get":{"tags":["Introspection"],"summary":"OpenAPI description (this document)","produces":["application/openapi+json","application/json"],"responses":{"200":{"description":"OK"}}}},"/likes":{"get":{"tags":["likes"],"parameters":[{"$ref":"#/parameters/rowFilter.likes.match"},{"$ref":"#/parameters/rowFilter.likes.team"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"206":{"description":"Partial Content"},"200":{"schema":{"$ref":"#/definitions/likes"},"description":"OK"}}},"post":{"tags":["likes"],"parameters":[{"$ref":"#/parameters/body.likes"},{"$ref":"#/parameters/preferReturn"}],"responses":{"201":{"description":"Created"}}},"delete":{"tags":["likes"],"parameters":[{"$ref":"#/parameters/rowFilter.likes.match"},{"$ref":"#/parameters/rowFilter.likes.team"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}}},"patch":{"tags":["likes"],"parameters":[{"$ref":"#/parameters/rowFilter.likes.match"},{"$ref":"#/parameters/rowFilter.likes.team"},{"$ref":"#/parameters/body.likes"},{"$ref":"#/parameters/preferReturn"}],"responses":{"204":{"description":"No Content"}}}},"/matchday":{"get":{"tags":["matchday"],"parameters":[{"$ref":"#/parameters/rowFilter.matchday.id"},{"$ref":"#/parameters/rowFilter.matchday.competition"},{"$ref":"#/parameters/rowFilter.matchday.season"},{"$ref":"#/parameters/rowFilter.matchday.matchday"},{"$ref":"#/parameters/rowFilter.matchday.date"},{"$ref":"#/parameters/rowFilter.matchday.day"},{"$ref":"#/parameters/rowFilter.matchday.today"},{"$ref":"#/parameters/rowFilter.matchday.period"},{"$ref":"#/parameters/rowFilter.matchday.kickoff"},{"$ref":"#/parameters/rowFilter.matchday.last_change"},{"$ref":"#/parameters/rowFilter.matchday.status"},{"$ref":"#/parameters/rowFilter.matchday.running"},{"$ref":"#/parameters/rowFilter.matchday.comment"},{"$ref":"#/parameters/rowFilter.matchday.home_id"},{"$ref":"#/parameters/rowFilter.matchday.away_id"},{"$ref":"#/parameters/rowFilter.matchday.home_code"},{"$ref":"#/parameters/rowFilter.matchday.away_code"},{"$ref":"#/parameters/rowFilter.matchday.home_name"},{"$ref":"#/parameters/rowFilter.matchday.away_name"},{"$ref":"#/parameters/rowFilter.matchday.home_likes"},{"$ref":"#/parameters/rowFilter.matchday.away_likes"},{"$ref":"#/parameters/rowFilter.matchday.home_score"},{"$ref":"#/parameters/rowFilter.matchday.away_score"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"206":{"description":"Partial Content"},"200":{"schema":{"$ref":"#/definitions/matchday"},"description":"OK"}}}},"/standings":{"get":{"tags":["standings"],"parameters":[{"$ref":"#/parameters/rowFilter.standings.id"},{"$ref":"#/parameters/rowFilter.standings.competition"},{"$ref":"#/parameters/rowFilter.standings.season"},{"$ref":"#/parameters/rowFilter.standings.matchday"},{"$ref":"#/parameters/rowFilter.standings.date"},{"$ref":"#/parameters/rowFilter.standings.day"},{"$ref":"#/parameters/rowFilter.standings.today"},{"$ref":"#/parameters/rowFilter.standings.period"},{"$ref":"#/parameters/rowFilter.standings.kickoff"},{"$ref":"#/parameters/rowFilter.standings.last_change"},{"$ref":"#/parameters/rowFilter.standings.status"},{"$ref":"#/parameters/rowFilter.standings.running"},{"$ref":"#/parameters/rowFilter.standings.comment"},{"$ref":"#/parameters/rowFilter.standings.home_id"},{"$ref":"#/parameters/rowFilter.standings.away_id"},{"$ref":"#/parameters/rowFilter.standings.home_code"},{"$ref":"#/parameters/rowFilter.standings.away_code"},{"$ref":"#/parameters/rowFilter.standings.home_name"},{"$ref":"#/parameters/rowFilter.standings.away_name"},{"$ref":"#/parameters/rowFilter.standings.home_likes"},{"$ref":"#/parameters/rowFilter.standings.away_likes"},{"$ref":"#/parameters/rowFilter.standings.home_score"},{"$ref":"#/parameters/rowFilter.standings.away_score"},{"$ref":"#/parameters/select"},{"$ref":"#/parameters/order"},{"$ref":"#/parameters/range"},{"$ref":"#/parameters/rangeUnit"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/preferCount"}],"responses":{"206":{"description":"Partial Content"},"200":{"schema":{"$ref":"#/definitions/standings"},"description":"OK"}}}}},"definitions":{"likes":{"properties":{"match":{"format":"integer","type":"integer","description":"Note:\nThis is a Foreign Key to `matches.id`."},"team":{"format":"text","type":"string","description":"Note:\nThis is a Foreign Key to `teams.id`."}},"type":"object"},"matchday":{"properties":{"id":{"format":"integer","type":"integer"},"competition":{"format":"text","type":"string"},"season":{"format":"integer","type":"integer"},"matchday":{"format":"integer","type":"integer"},"date":{"format":"timestamp with time zone","type":"string"},"day":{"format":"date","type":"string"},"today":{"format":"boolean","type":"boolean"},"period":{"format":"integer","type":"integer"},"kickoff":{"format":"timestamp with time zone","type":"string"},"last_change":{"format":"timestamp with time zone","type":"string"},"status":{"format":"text","type":"string"},"running":{"format":"boolean","type":"boolean"},"comment":{"format":"text","type":"string"},"home_id":{"format":"text","type":"string"},"away_id":{"format":"text","type":"string"},"home_code":{"format":"text","type":"string"},"away_code":{"format":"text","type":"string"},"home_name":{"format":"text","type":"string"},"away_name":{"format":"text","type":"string"},"home_likes":{"format":"integer","type":"integer"},"away_likes":{"format":"integer","type":"integer"},"home_score":{"format":"text","type":"string"},"away_score":{"format":"text","type":"string"}},"type":"object"},"standings":{"properties":{"id":{"format":"integer","type":"integer"},"competition":{"format":"text","type":"string"},"season":{"format":"integer","type":"integer"},"matchday":{"format":"integer","type":"integer"},"date":{"format":"timestamp with time zone","type":"string"},"day":{"format":"date","type":"string"},"today":{"format":"boolean","type":"boolean"},"period":{"format":"integer","type":"integer"},"kickoff":{"format":"timestamp with time zone","type":"string"},"last_change":{"format":"timestamp with time zone","type":"string"},"status":{"format":"text","type":"string"},"running":{"format":"boolean","type":"boolean"},"comment":{"format":"text","type":"string"},"home_id":{"format":"text","type":"string"},"away_id":{"format":"text","type":"string"},"home_code":{"format":"text","type":"string"},"away_code":{"format":"text","type":"string"},"home_name":{"format":"text","type":"string"},"away_name":{"format":"text","type":"string"},"home_likes":{"format":"integer","type":"integer"},"away_likes":{"format":"integer","type":"integer"},"home_score":{"format":"text","type":"string"},"away_score":{"format":"text","type":"string"}},"type":"object"}},"parameters":{"preferParams":{"name":"Prefer","description":"Preference","required":false,"in":"header","type":"string","enum":["params=single-object"]},"preferReturn":{"name":"Prefer","description":"Preference","required":false,"in":"header","type":"string","enum":["return=representation","return=minimal","return=none"]},"preferCount":{"name":"Prefer","description":"Preference","required":false,"in":"header","type":"string","enum":["count=none"]},"select":{"name":"select","description":"Filtering Columns","required":false,"in":"query","type":"string"},"order":{"name":"order","description":"Ordering","required":false,"in":"query","type":"string"},"range":{"name":"Range","description":"Limiting and Pagination","required":false,"in":"header","type":"string"},"rangeUnit":{"name":"Range-Unit","description":"Limiting and Pagination","required":false,"default":"items","in":"header","type":"string"},"offset":{"name":"offset","description":"Limiting and Pagination","required":false,"in":"query","type":"string"},"limit":{"name":"limit","description":"Limiting and Pagination","required":false,"in":"query","type":"string"},"body.likes":{"name":"likes","description":"likes","required":false,"schema":{"$ref":"#/definitions/likes"},"in":"body"},"rowFilter.likes.match":{"name":"match","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.likes.team":{"name":"team","required":false,"format":"text","in":"query","type":"string"},"body.matchday":{"name":"matchday","description":"matchday","required":false,"schema":{"$ref":"#/definitions/matchday"},"in":"body"},"rowFilter.matchday.id":{"name":"id","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.matchday.competition":{"name":"competition","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.season":{"name":"season","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.matchday.matchday":{"name":"matchday","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.matchday.date":{"name":"date","required":false,"format":"timestamp with time zone","in":"query","type":"string"},"rowFilter.matchday.day":{"name":"day","required":false,"format":"date","in":"query","type":"string"},"rowFilter.matchday.today":{"name":"today","required":false,"format":"boolean","in":"query","type":"string"},"rowFilter.matchday.period":{"name":"period","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.matchday.kickoff":{"name":"kickoff","required":false,"format":"timestamp with time zone","in":"query","type":"string"},"rowFilter.matchday.last_change":{"name":"last_change","required":false,"format":"timestamp with time zone","in":"query","type":"string"},"rowFilter.matchday.status":{"name":"status","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.running":{"name":"running","required":false,"format":"boolean","in":"query","type":"string"},"rowFilter.matchday.comment":{"name":"comment","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.home_id":{"name":"home_id","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.away_id":{"name":"away_id","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.home_code":{"name":"home_code","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.away_code":{"name":"away_code","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.home_name":{"name":"home_name","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.away_name":{"name":"away_name","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.home_likes":{"name":"home_likes","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.matchday.away_likes":{"name":"away_likes","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.matchday.home_score":{"name":"home_score","required":false,"format":"text","in":"query","type":"string"},"rowFilter.matchday.away_score":{"name":"away_score","required":false,"format":"text","in":"query","type":"string"},"body.standings":{"name":"standings","description":"standings","required":false,"schema":{"$ref":"#/definitions/standings"},"in":"body"},"rowFilter.standings.id":{"name":"id","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.standings.competition":{"name":"competition","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.season":{"name":"season","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.standings.matchday":{"name":"matchday","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.standings.date":{"name":"date","required":false,"format":"timestamp with time zone","in":"query","type":"string"},"rowFilter.standings.day":{"name":"day","required":false,"format":"date","in":"query","type":"string"},"rowFilter.standings.today":{"name":"today","required":false,"format":"boolean","in":"query","type":"string"},"rowFilter.standings.period":{"name":"period","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.standings.kickoff":{"name":"kickoff","required":false,"format":"timestamp with time zone","in":"query","type":"string"},"rowFilter.standings.last_change":{"name":"last_change","required":false,"format":"timestamp with time zone","in":"query","type":"string"},"rowFilter.standings.status":{"name":"status","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.running":{"name":"running","required":false,"format":"boolean","in":"query","type":"string"},"rowFilter.standings.comment":{"name":"comment","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.home_id":{"name":"home_id","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.away_id":{"name":"away_id","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.home_code":{"name":"home_code","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.away_code":{"name":"away_code","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.home_name":{"name":"home_name","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.away_name":{"name":"away_name","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.home_likes":{"name":"home_likes","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.standings.away_likes":{"name":"away_likes","required":false,"format":"integer","in":"query","type":"string"},"rowFilter.standings.home_score":{"name":"home_score","required":false,"format":"text","in":"query","type":"string"},"rowFilter.standings.away_score":{"name":"away_score","required":false,"format":"text","in":"query","type":"string"}},"externalDocs":{"url":"https://postgrest.com/en/v4.4/api.html","description":"PostgREST Documentation"}}