Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
eeb4dcd3
authored
May 10, 2019
by
Gazdag Péter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added basic image api
parent
e46f8022
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
recircle/image/models.py
+1
-1
recircle/image/urls.py
+6
-0
recircle/image/views.py
+5
-1
recircle/recircle/urls.py
+1
-0
No files found.
recircle/image/models.py
View file @
eeb4dcd3
from
django.db
import
models
class
Disk
():
class
Disk
(
models
.
Model
):
"""A virtual disk.
"""
...
...
recircle/image/urls.py
0 → 100644
View file @
eeb4dcd3
from
django.urls
import
include
,
path
urlpatterns
=
[
path
(
'image/'
,
include
(
'image.urls'
)),
]
\ No newline at end of file
recircle/image/views.py
View file @
eeb4dcd3
from
image.models
import
Disk
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
):
recircle/recircle/urls.py
View file @
eeb4dcd3
...
...
@@ -21,6 +21,7 @@ from rest_framework_swagger.views import get_swagger_view
schema_view
=
get_swagger_view
(
title
=
'RECIRCLE API'
)
urlpatterns
=
[
path
(
'images/'
,
include
(
'image.urls'
)),
path
(
'api/v1/'
,
include
(
'instance.urls'
)),
path
(
'admin/'
,
admin
.
site
.
urls
),
re_path
(
r'^auth/'
,
include
(
'djoser.urls'
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment