Finish first working version of reqlog

This commit is contained in:
David Stotijn
2020-09-19 01:27:55 +02:00
parent c5cf6ef867
commit 211c11be2b
10 changed files with 646 additions and 280 deletions

View File

@ -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