Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

API Reference

Harshith Pabbati edited this page Aug 29, 2019 · 8 revisions

Authorisation APIs

Generate JWT Auth Token

Generates an authorisation token for the user

mutation TokenAuth($username: String!, $password: String!) {
  tokenAuth(username: $username, password: $password) {
    token
    refreshToken
  }
}

Read more about Authorisation APIs

Attendance

Log Attendance

mutation($username: String!, $password: String!, $time: DateTime!, $secret: String!, $list: String!){
  LogAttendance(username: $username, password: $password,time: $time, secret: $secret, list: $list){
    id
  }
}

Leave Record

mutation RecordLeaveToday($userId: String!, $reason: String!, $type: String!, $botToken: String!,$token:String!{
  RecordLeaveToday(userId: $userId, reason: $reason, type: $type, botToken: $botToken, token: $token){
    id
  }
}
Clone this wiki locally