Commit eeb4dcd3 by Gazdag Péter

Added basic image api

parent e46f8022
from django.db import models from django.db import models
class Disk(): class Disk(models.Model):
"""A virtual disk. """A virtual disk.
""" """
......
from django.urls import include, path
urlpatterns = [
path('image/', include('image.urls')),
]
\ No newline at end of file
from image.models import Disk
from django.shortcuts import render from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
import openstack
# Create your views here. class DiskList(APIView):
...@@ -21,6 +21,7 @@ from rest_framework_swagger.views import get_swagger_view ...@@ -21,6 +21,7 @@ from rest_framework_swagger.views import get_swagger_view
schema_view = get_swagger_view(title='RECIRCLE API') schema_view = get_swagger_view(title='RECIRCLE API')
urlpatterns = [ urlpatterns = [
path('images/', include('image.urls')),
path('api/v1/', include('instance.urls')), path('api/v1/', include('instance.urls')),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
re_path(r'^auth/', include('djoser.urls')), re_path(r'^auth/', include('djoser.urls')),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment