Initial commit AB#12
This commit is contained in:
6
hasura/config.yaml
Normal file
6
hasura/config.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
version: 3
|
||||
endpoint: http://localhost:8080
|
||||
metadata_directory: metadata
|
||||
actions:
|
||||
kind: synchronous
|
||||
handler_webhook_baseurl: http://localhost:3000
|
||||
54
hasura/metadata/actions.graphql
Normal file
54
hasura/metadata/actions.graphql
Normal file
@@ -0,0 +1,54 @@
|
||||
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
|
||||
}
|
||||
|
||||
42
hasura/metadata/actions.yaml
Normal file
42
hasura/metadata/actions.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
actions:
|
||||
- name: venueById
|
||||
definition:
|
||||
kind: ""
|
||||
handler: http://venues
|
||||
request_transform:
|
||||
method: GET
|
||||
query_params: {}
|
||||
request_headers:
|
||||
add_headers: {}
|
||||
remove_headers:
|
||||
- content-type
|
||||
template_engine: Kriti
|
||||
url: '{{$base_url}}/api/venues/{{$body.input.id}}'
|
||||
version: 2
|
||||
- name: venues
|
||||
definition:
|
||||
kind: ""
|
||||
handler: http://venues
|
||||
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/venues'
|
||||
version: 2
|
||||
custom_types:
|
||||
enums: []
|
||||
input_objects:
|
||||
- name: SampleInput
|
||||
objects:
|
||||
- name: SampleOutput
|
||||
- name: Venue
|
||||
- name: VenuesPagedResponse
|
||||
- name: VenueResponse
|
||||
- name: VenueByIdResponse
|
||||
scalars: []
|
||||
1
hasura/metadata/allow_list.yaml
Normal file
1
hasura/metadata/allow_list.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/api_limits.yaml
Normal file
1
hasura/metadata/api_limits.yaml
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/cron_triggers.yaml
Normal file
1
hasura/metadata/cron_triggers.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/databases/databases.yaml
Normal file
1
hasura/metadata/databases/databases.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/graphql_schema_introspection.yaml
Normal file
1
hasura/metadata/graphql_schema_introspection.yaml
Normal file
@@ -0,0 +1 @@
|
||||
disabled_for_roles: []
|
||||
1
hasura/metadata/inherited_roles.yaml
Normal file
1
hasura/metadata/inherited_roles.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/metrics_config.yaml
Normal file
1
hasura/metadata/metrics_config.yaml
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/network.yaml
Normal file
1
hasura/metadata/network.yaml
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
hasura/metadata/query_collections.yaml
Normal file
1
hasura/metadata/query_collections.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/remote_schemas.yaml
Normal file
1
hasura/metadata/remote_schemas.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/rest_endpoints.yaml
Normal file
1
hasura/metadata/rest_endpoints.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
1
hasura/metadata/version.yaml
Normal file
1
hasura/metadata/version.yaml
Normal file
@@ -0,0 +1 @@
|
||||
version: 3
|
||||
Reference in New Issue
Block a user