Project

General

Profile

Actions

Task #5512

closed

implement of api for when identifier match then it add coins to user according to dueDate and conditions

Added by Vikram Singh about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/04/2023
Due date:
10/13/2023
% Done:

100%

Estimated time:
8:00 h (Total: 14:00 h)

Description

Acceptance criteria
  • Create a dedicated API endpoint for adding coins.
  • Validate the API request, ensuring the required input (e.g., identifier) is provided.
  • Verify that the provided identifier matches an existing task or condition.
  • Check the due date associated with the task or condition to ensure it is still valid.
  • Implement user authorization or authentication, depending on your application's requirements.
  • Calculate the number of coins to be added based on task or condition criteria.
  • Log the transaction or coins addition securely, including user ID, task/condition details, and coins added.
  • Add the calculated coins to the user's account or wallet.
  • Implement error handling for cases of mismatched identifiers, invalid due dates, or other errors.
  • Provide clear and informative API responses indicating success or error.

Subtasks 1 (0 open1 closed)

Task #5949: implement of identifier in gamification for add the coins and use it for task and coinsClosedSatyam sahu10/16/202310/23/2023

Actions
Actions

Also available in: Atom PDF