WDCC Membership Checker (0.0.1)

Download OpenAPI specification:Download

E-mail: projects@wdcc.co.nz URL: wdcc.co.nz License: private

User

Respond with "Hello, {firstName}!" if the user is signed in and Hello, World! if the user is not signed in

Respond with "Hello, {firstName}!" if the user is signed in and Hello, World! if the user is not signed in with

Authorizations:
jwt_token

Responses

Response samples

Content type
application/text
Example
Hello, Alex!

Google

Redirect to Google Auth page

Redirect to Google Authentication with profile, email, and read spreadsheets permissions

Responses

Authentication

Redirect to Google Auth page

Redirect to Google Authentication with profile, email, and read spreadsheets permissions

Responses

Auth

Google redirects user to endpoint. Signs them in from there

'Google redirects user after siging in. Uses code in query parameters to verify. Creates JWT token which should be passed into every request for authentication in the future. JWT Token contains firstName, lastName, email, id and createdAt time. Signed with JWT secret stored on server side in environment variable. If the user doesn't exist it creates one with the information provided by Google'

Responses

Club

'Create a new club'

Create a new club with a unique name and an acronym associated to the user.

Authorizations:
jwt_token

Responses

Response samples

Content type
application/text
created club Web Development Consulting Club with acronym WDCC and added user

Create the invite code for new members to join the club

Create the invite code for new members to join the club. Creates 6 digit code that expires in 2 hours.

Authorizations:
jwt_token

Responses

Verify the club invite code shared

Verify invite code containing users organisation ID signed by a JWT Token. If JWT token signature is valid, it will add the signed in user to the club with that name

Authorizations:
jwt_token

Responses

Columns

'Get the columns from page'

Get the columns from the page with the id

Authorizations:
jwt_token

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    },
  • {
    }
]

Verify membership status of student

Verify the membership status of a student in a club based on a column, value, and web page

Authorizations:
jwt_token

Responses