reverse engineered schema for medium graphql endpoint

This commit is contained in:
Aravinth Manivannan 2021-10-31 15:12:49 +05:30
parent 732eeb0d3a
commit 92a9f12117
Signed by untrusted user: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 106 additions and 0 deletions

42
schemas/query.graphql Normal file
View file

@ -0,0 +1,42 @@
query GetPost($id: ID!) {
post(id: $id) {
title
createdAt
creator {
name
id
}
content {
bodyModel {
paragraphs {
text
type
href
layout
markups {
title
type
href
userId
start
end
anchorType
}
iframe {
mediaResource {
href
iframeSrc
iframeWidth
iframeHeight
}
}
metadata {
id
originalWidth
originalHeight
}
}
}
}
}
}

64
schemas/schema.graphql Normal file
View file

@ -0,0 +1,64 @@
type Query {
post: Post
}
schema {
query: Query
}
type Paragraphs {
text: String
type: String
href: String
layout: String
iframe: IFrame
metadata: MetaData
markups: [MarkUp ]
}
type MarkUp {
title: String
type: String!
href: String
userId: String
start: Int!
end: Int!
anchorType: String
}
type IFrame {
mediaResource: MediaResource
}
type MediaResource{
href: String!
iframeSrc: String!
iframeWidth: Int!
iframeHeight: Int
}
type MetaData {
id: String
originalWidth: Int
originalHeight: Int
}
type BodyModel { paragraphs: [Paragraphs ] }
type Content { bodyModel: BodyModel }
type User { id: String name: String }
type Post {
id: ID!
title: String
createdAt: Int
content: Content
creator: User
}
type Data { post: Post }
type AutogeneratedMainType { data: Data }