Files
hetty/pkg/api/schema.graphql
2020-09-21 22:27:10 +02:00

37 lines
463 B
GraphQL

type HttpRequestLog {
id: ID!
url: String!
method: HttpMethod!
proto: String!
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