mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Finish first working version of reqlog
This commit is contained in:
@ -1,17 +1,30 @@
|
||||
type Request {
|
||||
type HttpRequest {
|
||||
url: String!
|
||||
method: HttpMethod!
|
||||
body: String
|
||||
timestamp: Time!
|
||||
response: HttpResponse
|
||||
}
|
||||
|
||||
type HttpResponse {
|
||||
statusCode: Int!
|
||||
body: String
|
||||
}
|
||||
|
||||
type Query {
|
||||
getRequests: [Request!]!
|
||||
getHttpRequests: [HttpRequest!]!
|
||||
}
|
||||
|
||||
enum HttpMethod {
|
||||
GET
|
||||
HEAD
|
||||
POST
|
||||
PUT
|
||||
DELETE
|
||||
CONNECT
|
||||
OPTIONS
|
||||
TRACE
|
||||
PATCH
|
||||
}
|
||||
|
||||
scalar Time
|
||||
scalar Time
|
||||
|
Reference in New Issue
Block a user