Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing-E
/
E_Team_KhuBox
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
jshong0907
2020-06-08 15:33:45 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
서승완
2020-06-10 03:27:47 +0900
Commit
1179021ac0e2dbd22c018981fc8115064f25e7a3
1179021a
1 parent
0433ade1
trash api
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
5 deletions
khubox-api/config/settings.py
khubox-api/khubox/serializers.py
khubox-api/khubox/urls.py
khubox-api/requirements.txt
khubox-api/user/admin.py
khubox-api/config/settings.py
View file @
1179021
...
...
@@ -81,9 +81,6 @@ DATABASES = {
'PASSWORD'
:
'8f13dd391805db193227d3544b570b69'
,
'HOST'
:
'khubox.cogff6stbbkv.ap-northeast-2.rds.amazonaws.com'
,
'PORT'
:
'3306'
,
'OPTIONS'
:
{
'init_command'
:
"SET sql_mode='STRICT_TRANS_TABLES'"
}
}
}
...
...
khubox-api/khubox/serializers.py
0 → 100644
View file @
1179021
from
rest_framework
import
serializers
from
.models
import
File
class
FileSerializer
(
serializers
.
ModelSerializer
):
class
Meta
:
model
=
File
fields
=
[
'id'
,
'parent_id'
,
'owner_id'
,
'uploader_id'
,
'type'
,
'name'
,
'size'
,
'is_public'
,
'is_shared'
,
'is_starred'
,
'is_trahsed'
,
'created_at'
]
\ No newline at end of file
khubox-api/khubox/urls.py
0 → 100644
View file @
1179021
from
django.conf.urls
import
url
from
rest_framework.urlpatterns
import
format_suffix_patterns
from
.
import
views
# API endpoints
urlpatterns
=
format_suffix_patterns
([
url
(
r'^folders/(?P<pk>\w+)/$'
,
views
.
FolderRequest
.
as_view
()),
url
(
r'^folders/$'
,
views
.
FolderRequest
.
as_view
()),
url
(
r'^files/'
,
views
.
StarredFiles
.
as_view
()),
url
(
r'^files/starred/(?P<pk>\w+).$'
,
views
.
StarredFiles
.
as_view
()),
url
(
r'^trash/(?P<pk>\w+)/$'
,
views
.
TrashReqeust
.
as_view
()),
url
(
r'^trash/$'
,
views
.
FolderRequest
.
as_view
()),
])
\ No newline at end of file
khubox-api/requirements.txt
View file @
1179021
...
...
@@ -36,5 +36,3 @@ Werkzeug==0.16.1
wsgi-request-logger==0.4.6
zappa==0.51.0
zipp==3.1.0
djangorestframework == 3.11.0
django-rest-knox == 1.1.0
...
...
khubox-api/user/admin.py
View file @
1179021
from
django.contrib
import
admin
from
khubox.models
import
*
# Register your models here.
admin
.
site
.
register
(
File
)
\ No newline at end of file
...
...
Please
register
or
login
to post a comment