📄Forms Handling
(Not avaliable for the general public)
Methods allowed:
API ENDPOINT: /v1/forms
/v1/forms
POST
/create/:otp?customID=value&qtn1-8=value
POST
/edit/:formid/:otp?qtn1-8=value
GET
/get/:formid
POST
/send/:otp?aws1-8=value
/CREATE [POST]
SECURITY: TRUE
- TYPE: USER SESSION
- ROLE: STAFF
ACTION: Creates a form by parsing a query with the query info.
RESULT: JSON
-> REQUEST URL
CustomID is the id of the form that will be created. Its mandatory to send an CustomID
-> REQUEST BODY
-> RESULT
/EDIT [POST]
SECURITY: TRUE
- TYPE: USER SESSION
- ROLE: STAFF
ACTION: Edits a form by parsing a body with the new form questions.
RESULT: JSON
-> REQUEST URL
-> REQUEST BODY
-> RESULT
/GET [GET]
SECURITY: TRUE
- TYPE: USER SESSION TOKEN
ACTION: Fetches form information and generates OTP for sending answer.
RESULT: JSON
-> REQUEST
-> RESULT
/SEND [POST]
SECURITY: TRUE
- TYPE: SERVER GENERATED OTP FROM /GET
ACTION: Sends a form by parsing a body with the forms answers.
RESULT: JSON
-> REQUEST URL
-> REQUEST BODY
-> RESULT
Last updated