Complete backend API and deployment guide
- Django REST API with lobster endpoints - API views: list, detail, memory, tools - Deployment guide with instructions - Startup script for easy launch - Requirements.txt for dependencies - API URL routing
This commit is contained in:
12
code/backend/api/urls.py
Normal file
12
code/backend/api/urls.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""
|
||||
API URL configuration.
|
||||
"""
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('lobsters/', views.lobster_list, name='lobster-list'),
|
||||
path('lobsters/<int:lobster_id>/', views.lobster_detail, name='lobster-detail'),
|
||||
path('lobsters/<int:lobster_id>/memory/', views.lobster_memory, name='lobster-memory'),
|
||||
path('tools/', views.tools_list, name='tools-list'),
|
||||
]
|
||||
Reference in New Issue
Block a user