mirror of
https://github.com/dstotijn/hetty
synced 2024-12-04 01:09:14 +00:00
43 lines
568 B
GraphQL
43 lines
568 B
GraphQL
type HttpRequestLog {
|
|
id: ID!
|
|
url: String!
|
|
method: HttpMethod!
|
|
proto: String!
|
|
headers: [HttpHeader!]!
|
|
body: String
|
|
timestamp: Time!
|
|
response: HttpResponseLog
|
|
}
|
|
|
|
type HttpResponseLog {
|
|
requestId: ID!
|
|
proto: String!
|
|
status: String!
|
|
statusCode: Int!
|
|
body: String
|
|
headers: [HttpHeader!]!
|
|
}
|
|
|
|
type HttpHeader {
|
|
key: String!
|
|
value: String!
|
|
}
|
|
|
|
type Query {
|
|
httpRequestLog(id: ID!): HttpRequestLog
|
|
httpRequestLogs: [HttpRequestLog!]!
|
|
}
|
|
|
|
enum HttpMethod {
|
|
GET
|
|
HEAD
|
|
POST
|
|
PUT
|
|
DELETE
|
|
CONNECT
|
|
OPTIONS
|
|
TRACE
|
|
PATCH
|
|
}
|
|
|
|
scalar Time
|