gitea_pages/frontend/schema.graphql

38 lines
641 B
GraphQL
Raw Normal View History

2023-05-21 16:58:10 +00:00
input CreateRepositoryInput {
user: String!
name: String!
}
type Mutation {
createRepository(input: CreateRepositoryInput!): Repository!
deleteRepository(id: UUID!): Boolean!
}
type Query {
ping: String!
verifyLogin(username: String!, password: String!): Boolean!
user(id: UUID!): User!
userByName(name: String!): User!
users: [User!]!
repository(id: UUID!): Repository!
repositories: [Repository!]!
}
type Repository {
id: UUID!
user: User!
name: String!
url(scheme: Boolean): String!
}
type User {
id: UUID!
name: String!
repositories: [Repository!]!
}
"""
UUID encoded as a string
"""
scalar UUID