This repository was archived by the owner on Sep 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
GraphQL API
Simon Roy edited this page Jul 30, 2024
·
2 revisions
Cursif is built with GraphQL, a query language for APIs. You can use it to request the exact data you need, and therefore limit the number of requests you need.
Code Society's endpoint: https://api.codesociety.xyz/api
If you are new with GraphQL, we recommend that you read GraphQL's Introduction.
Cursif GrapQL endpoint is at /api. You can use the official Code Society Instance https://api.codesociety.xyz/api.
You can explore the API using an interactive GraphQL explorer, such as:
Authentication requires email and password.
mutation {
login(email: "grace.hopper@email.com", password: "GraceHopper123!") {
token
user {
id
username
email
firstName
lastName
}
}Registration require 3 parameters, username, email and password. You can optionally
include your firstName and lastName.
mutation {
register(
username: "ghopper",
firstName: "Grace",
lastName: "Hopper",
email: "grace.hopper@example.com",
password: "GraceHopper!"
) {
username
firstName
lastName
email
password
}
}