37 lines
641 B
GraphQL
37 lines
641 B
GraphQL
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
|