Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement API to Save New Subscription Plan in Superadmin #1535

Open
OluwatimileyinO opened this issue Aug 24, 2024 · 0 comments
Open

Implement API to Save New Subscription Plan in Superadmin #1535

OluwatimileyinO opened this issue Aug 24, 2024 · 0 comments

Comments

@OluwatimileyinO
Copy link

Description

Develop the backend functionality that allows the Superadmin to save a newly created subscription plan. This will involve creating an API endpoint that receives data from the frontend, processes it, and stores the subscription plan in the database.

User Story

As a Superadmin, I want to be able to save a new subscription plan via the backend, so I can store and manage the plan within the system.

Requirements

  • API Endpoint: Implement a POST API endpoint to receive the subscription plan data from the frontend.
  • Data Processing: Capture and validate the input data (e.g., plan name, price, project size, file uploads, user accounts, and teams) sent by the frontend.
  • Data Storage: Store the validated subscription plan data in the database.
  • Error Handling: Implement error handling to manage validation issues, database errors, and other potential problems. Provide appropriate success or error messages back to the frontend.

Acceptance Criteria

  • The API endpoint is implemented and properly receives data from the frontend.
  • The input data is validated and stored correctly in the database.
  • Success messages are returned when the plan is successfully saved, and error messages are provided if there are any issues.

Checklist

  • Implement the POST API endpoint for saving subscription plans.
  • Validate the input data received from the frontend.
  • Integrate with the database to store the subscription plan.
  • Implement error handling and return appropriate messages.
  • Test the API endpoint to ensure data is correctly saved and errors are managed.

Link:
https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=34424-33879&t=BRT0B1hhCgta0BxE-4

Picture:
Screenshot (112)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant