110 lines
1.5 KiB
GraphQL
110 lines
1.5 KiB
GraphQL
type Query {
|
|
teamById(
|
|
id: Int!
|
|
): TeamByIdResponse
|
|
}
|
|
|
|
type Query {
|
|
teams(
|
|
pageNumber: Int
|
|
pageSize: Int
|
|
): TeamsPagedResponse
|
|
}
|
|
|
|
type Query {
|
|
venueById(
|
|
id: Int!
|
|
): VenueByIdResponse
|
|
}
|
|
|
|
type Query {
|
|
venues(
|
|
pageNumber: Int
|
|
pageSize: Int
|
|
): VenuesPagedResponse
|
|
}
|
|
|
|
input SampleInput {
|
|
username: String!
|
|
password: String!
|
|
}
|
|
|
|
type SampleOutput {
|
|
accessToken: String!
|
|
}
|
|
|
|
type Venue {
|
|
active: String
|
|
id: Int
|
|
link: String
|
|
name: String
|
|
}
|
|
|
|
type VenuesPagedResponse {
|
|
currentPage: Int
|
|
errors: String
|
|
message: String
|
|
pageSize: Int
|
|
results: [Venue]
|
|
succeeded: Boolean
|
|
totalItemCount: Int
|
|
totalPageCount: Int
|
|
}
|
|
|
|
type VenueResponse {
|
|
errors: String
|
|
message: String
|
|
results: Venue
|
|
succeeded: Boolean
|
|
}
|
|
|
|
type VenueByIdResponse {
|
|
errors: String
|
|
message: String
|
|
results: Venue
|
|
succeeded: Boolean
|
|
}
|
|
|
|
type TeamsPagedResponse {
|
|
currentPage: Int
|
|
errors: String
|
|
message: String
|
|
pageSize: Int
|
|
results: [Team]
|
|
succeeded: Boolean
|
|
totalItemCount: Int
|
|
totalPageCount: Int
|
|
}
|
|
|
|
type Team {
|
|
id: String
|
|
name: String
|
|
abbreviation: String
|
|
active: String
|
|
allStarStatus: String
|
|
clubName: String
|
|
divisionId: Int
|
|
fileCode: String
|
|
firstYearOfPlay: Int
|
|
franchiseName: String
|
|
leagueId: Int
|
|
link: String
|
|
locationName: String
|
|
season: String
|
|
shortName: String
|
|
springLeagueId: Int
|
|
springVenueId: Int
|
|
sportId: Int
|
|
teamCode: String
|
|
teamName: String
|
|
venueId: Int
|
|
}
|
|
|
|
type TeamByIdResponse {
|
|
errors: String
|
|
message: String
|
|
results: Team
|
|
succeeded: Boolean
|
|
}
|
|
|