Files
hetty/pkg/api/schema.graphql
2020-09-19 01:34:51 +02:00

31 lines
330 B
GraphQL

type HttpRequest {
url: String!
method: HttpMethod!
body: String
timestamp: Time!
response: HttpResponse
}
type HttpResponse {
statusCode: Int!
body: String
}
type Query {
getHttpRequests: [HttpRequest!]!
}
enum HttpMethod {
GET
HEAD
POST
PUT
DELETE
CONNECT
OPTIONS
TRACE
PATCH
}
scalar Time