mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
31 lines
330 B
GraphQL
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
|