Files
hetty/pkg/api/schema.graphql
2020-09-20 22:30:17 +02:00

36 lines
446 B
GraphQL

type HttpRequestLog {
id: ID!
url: String!
method: HttpMethod!
body: String
timestamp: Time!
response: HttpResponseLog
}
type HttpResponseLog {
requestId: ID!
proto: String!
status: String!
statusCode: Int!
body: String
}
type Query {
httpRequestLog(id: ID!): HttpRequestLog
httpRequestLogs: [HttpRequestLog!]!
}
enum HttpMethod {
GET
HEAD
POST
PUT
DELETE
CONNECT
OPTIONS
TRACE
PATCH
}
scalar Time