mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 18:07:02 +00:00
sonar issues fixed
This commit is contained in:
@ -8,21 +8,29 @@ from rest_framework import routers
|
||||
|
||||
"""Router"""
|
||||
router = routers.SimpleRouter()
|
||||
|
||||
# API End points with router
|
||||
# in this file
|
||||
# we define various api end point
|
||||
# that is covered in this guardian
|
||||
# section API:- like
|
||||
# Create junior profile API, validate junior profile,
|
||||
# junior list,
|
||||
# add junior list, invited junior,
|
||||
# filter-junior,
|
||||
# remove junior"""
|
||||
"""API End points with router"""
|
||||
"""Create junior profile API"""
|
||||
router.register('create-junior-profile', UpdateJuniorProfile, basename='profile-update')
|
||||
"""validate guardian code API"""
|
||||
# validate guardian code API"""
|
||||
router.register('validate-guardian-code', ValidateGuardianCode, basename='validate-guardian-code')
|
||||
"""junior list API"""
|
||||
# junior list API"""
|
||||
router.register('junior-list', JuniorListAPIView, basename='junior-list')
|
||||
"""Add junior list API"""
|
||||
# Add junior list API"""
|
||||
router.register('add-junior', AddJuniorAPIView, basename='add-junior')
|
||||
"""Invited junior list API"""
|
||||
# Invited junior list API"""
|
||||
router.register('invited-junior', InvitedJuniorAPIView, basename='invited-junior')
|
||||
"""Filter junior list API"""
|
||||
# Filter junior list API"""
|
||||
router.register('filter-junior', FilterJuniorAPIView, basename='filter-junior')
|
||||
"""Define url pattern"""
|
||||
# Define url pattern"""
|
||||
urlpatterns = [
|
||||
path('api/v1/', include(router.urls)),
|
||||
path('api/v1/remove-junior/', RemoveJuniorAPIView.as_view())
|
||||
|
Reference in New Issue
Block a user