Skip to content

utkarsh-project-cycle-admin-api #101

@DevTrackClub

Description

@DevTrackClub

Team :
Backend

Task :
Implement all the basic API for the project cycle mod page (view admin_controls_doc.pdf - page 3 for more details)

Details :

  • GET - Fetch all the details of the project cycle (pcname, start date and end date). Note - you cannot create a new cycle if the current cycle has is_active=True
  • POST - Create a new cycle which takes in the required details like pcname, start date, end date, etc. Make sure to mark the is_active flag as false
  • PUT - Edit the details of the project cycle
  • DELETE - Deacttivate the project cycle. Important note to remember! This action does not delete the records of the project cycle itself, it just marks the current project cycle to is_active=false. Also keep in mind that at a time, only one project cycle can be active

Make sure you follow structured coding practices like it has been followed in the codebase.
Feel free to use other files as reference to use it as reference.
To ensure readability, add the logic of your feature in the services.py file of the django app you are working on. No logic should be in the api.py file, it should simply call a function and return a value
i suggest you to use GPT to fully understand your task and use it as a learning tool.

any doubts, hmu, have fun

Metadata

Metadata

Assignees

Labels

backendTasks for django devsfeatureNew functionality to be implementedmedium priorityImportant but not urgent

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions