Makefile'dan bo'lak qismlar o'chirildi, docker-compose va Dockerfile'ga yangiliklar qo'shildi, yangi payment/api ilovasi yaratildi.
This commit is contained in:
0
payment/api/__init__.py
Normal file
0
payment/api/__init__.py
Normal file
3
payment/api/admin.py
Normal file
3
payment/api/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
payment/api/apps.py
Normal file
6
payment/api/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ApiConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "api"
|
||||
0
payment/api/migrations/__init__.py
Normal file
0
payment/api/migrations/__init__.py
Normal file
3
payment/api/models.py
Normal file
3
payment/api/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
payment/api/tests.py
Normal file
3
payment/api/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
6
payment/api/urls.py
Normal file
6
payment/api/urls.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
from .views import HealthView
|
||||
|
||||
urlpatterns = [
|
||||
path("health/", HealthView.as_view())
|
||||
]
|
||||
7
payment/api/views.py
Normal file
7
payment/api/views.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from rest_framework.views import APIView
|
||||
from rest_framework.response import Response
|
||||
|
||||
|
||||
class HealthView(APIView):
|
||||
def get(self, *args, **kwargs):
|
||||
return Response(data={"detail": "OK"})
|
||||
Reference in New Issue
Block a user