This commit is contained in:
Noah Spannbauer
2023-02-15 12:46:50 -06:00
parent c2d8bd1838
commit 0d5eb3e801
99 changed files with 20124 additions and 213 deletions

View File

@@ -1,3 +1,16 @@
type Query {
teamById(
id: Int!
): TeamByIdResponse
}
type Query {
teams(
pageNumber: Int
pageSize: Int
): TeamsPagedResponse
}
type Query {
venueById(
id: Int!
@@ -52,3 +65,45 @@ type VenueByIdResponse {
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
}

View File

@@ -1,4 +1,34 @@
actions:
- name: teamById
definition:
kind: ""
handler: http://teams
request_transform:
method: GET
query_params: {}
request_headers:
add_headers: {}
remove_headers:
- content-type
template_engine: Kriti
url: '{{$base_url}}/api/teams/{{$body.input.id}}'
version: 2
- name: teams
definition:
kind: ""
handler: http://teams
request_transform:
method: GET
query_params:
pageNumber: '{{$body.input.pageNumber}}'
pageSize: '{{$body.input.pageSize}}'
request_headers:
add_headers: {}
remove_headers:
- content-type
template_engine: Kriti
url: '{{$base_url}}/api/teams'
version: 2
- name: venueById
definition:
kind: ""
@@ -39,4 +69,7 @@ custom_types:
- name: VenuesPagedResponse
- name: VenueResponse
- name: VenueByIdResponse
- name: TeamsPagedResponse
- name: Team
- name: TeamByIdResponse
scalars: []