GET api/generator/qr-code
- Token is required.
- Only QR codes created in the event the current user is the member will be shown.
event={int}
has_join_key={boolean}
GET api/generator/qr-code/{int}
- Token is required.
- The current user must be a member of the event that the QR code in created in.
POST api/generator/qr-code
{
"url": "string",
"event": "int"
}
- Token is required.
- The current user must be a deputy leader of the event that the QR code in created in, otherwise, a status code of
400
will be returned. - The value of the
url
field must be a valid format or a URL, otherwise, a status code of400
will be returned. - If the QR code for a certain event already exists, a status code of
400
will be returned.
DELETE api/generator/qr-code/{int}
- Token is required.
- The current user must be a deputy leader of the event that the QR code in created in.
GET api/generator/join-key
- Token is required.
- Only join keys created in the event the current user is the member will be shown.
event={int}
GET api/generator/join-key/{int}
- Token is required.
- The current user must be a member of the event that the join key in created in.
POST api/generator/join-key
{
"key": "string",
"event": "int"
}
- Token is required.
- The current user must be a deputy leader of the event that the join key in created in, otherwise, a status code of
400
will be returned. - The value of the
key
field must only consist of alphabetical characters and numbers, otherwise, a status code of400
will be returned. - If the join key for a certain event already exists, a status code of
400
will be returned.
DELETE api/generator/join-key/{int}
- Token is required.
- The current user must be a deputy leader of the event that the join key in created in.
GET api/generator/join-key/generate
length={int}
must be an integer from 8 to 64, by leaving blank, 32 will be used as default.
POST api/generator/join-key/use
{
"key": "string"
}
- Token is required.
- If the join key is not provided, a status code of
400
will be returned. - If the user is already a member, a status code of
400
will be returned. - If the join key does not exist, a status code of
404
will be returned.
GET api/generator/docx
- Token is required.
- Only generated Microsoft Word documents created in the club the current user is the vice president will be shown.
club={int}
advisor={int}
GET api/generator/docx/{int}
- Token is required.
- The current user must be a vice president of the club that the generated Microsoft Word document in created in.
POST api/generator/docx
{
"objective": "string",
"objective_list": "string",
"room": "string",
"schedule": "string",
"plan_list": "string",
"merit": "string",
"club": "int",
"advisor": "int"
}
- Token is required.
- The field
objective
androom
must be a single line, otherwise, a status code of400
will be returned. - The current user must be a vice president of the club that the generated Microsoft Word document in created in, otherwise, a status code of
400
will be returned. - The advisor must be a lecturer, otherwise, a status code of
400
will be returned. - If the generated Microsoft Word document for a certain club already exists, a status code of
400
will be returned.
PUT api/generator/docx/{int}
PATCH api/generator/docx/{int}
{
"objective": "string",
"objective_list": "string",
"room": "string",
"schedule": "string",
"plan_list": "string",
"merit": "string",
"advisor": "int"
}
- Token is required.
- The field
objective
androom
must be a single line, otherwise, a status code of400
will be returned. - The current user must be a vice president of the club that the generated Microsoft Word document in created in.
- The advisor must be a lecturer, otherwise, a status code of
400
will be returned.
DELETE api/generator/docx/{int}
- Token is required.
- The current user must be a president of the club that the generated Microsoft Word document in created in.