-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added OpenAPI specification. Created template files and methods to co…
…mplete routes and database functions. Added views to urls.py. Added requirements.txt.
- Loading branch information
1 parent
cde12d6
commit 37b589a
Showing
25 changed files
with
562 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/books | ||
/covers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from rest_framework.views import APIView | ||
from rest_framework.response import Response | ||
from rest_framework import status, permissions, serializers | ||
from rest_framework.exceptions import ValidationError | ||
from rest_framework.parsers import FormParser, MultiPartParser | ||
from django.core.files.storage import default_storage | ||
from django.core.files.base import ContentFile | ||
from uuid import uuid4 | ||
|
||
class BooksBookidView(APIView): | ||
parser_classes = (FormParser, MultiPartParser) | ||
|
||
def get(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) | ||
|
||
def post(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) | ||
|
||
def put(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) | ||
|
||
def delete(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from rest_framework.views import APIView | ||
from rest_framework.response import Response | ||
from rest_framework import status, permissions, serializers | ||
from rest_framework.exceptions import ValidationError | ||
from rest_framework.parsers import FormParser, MultiPartParser | ||
from django.core.files.storage import default_storage | ||
from django.core.files.base import ContentFile | ||
from uuid import uuid4 | ||
|
||
class BooksBookidExportView(APIView): | ||
parser_classes = (FormParser, MultiPartParser) | ||
|
||
def get(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from rest_framework.views import APIView | ||
from rest_framework.response import Response | ||
from rest_framework import status, permissions, serializers | ||
from rest_framework.exceptions import ValidationError | ||
from rest_framework.parsers import FormParser, MultiPartParser | ||
from django.core.files.storage import default_storage | ||
from django.core.files.base import ContentFile | ||
from uuid import uuid4 | ||
|
||
class BooksBookidImagesView(APIView): | ||
parser_classes = (FormParser, MultiPartParser) | ||
|
||
def get(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from rest_framework.views import APIView | ||
from rest_framework.response import Response | ||
from rest_framework import status, permissions, serializers | ||
from rest_framework.exceptions import ValidationError | ||
from rest_framework.parsers import FormParser, MultiPartParser | ||
from django.core.files.storage import default_storage | ||
from django.core.files.base import ContentFile | ||
from uuid import uuid4 | ||
|
||
class BooksBookidSrcView(APIView): | ||
parser_classes = (FormParser, MultiPartParser) | ||
|
||
def get(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) | ||
|
||
def patch(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) | ||
|
||
def put(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from rest_framework.views import APIView | ||
from rest_framework.response import Response | ||
from rest_framework import status, permissions, serializers | ||
from rest_framework.exceptions import ValidationError | ||
from rest_framework.parsers import FormParser, MultiPartParser | ||
from django.core.files.storage import default_storage | ||
from django.core.files.base import ContentFile | ||
from uuid import uuid4 | ||
|
||
class ImagesHashView(APIView): | ||
parser_classes = (FormParser, MultiPartParser) | ||
|
||
def get(self, request, *args, **kwargs): | ||
return Response({"TODO": "TODO"}, status=status.HTTP_200_OK) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.