forked from github/plane
* dev: new proxy api setup * dev: updated endpoints with serializers and structure * dev: external apis for cycles, modules and inbox issue * dev: order by for all the apis * dev: enable webhooks for external apis * dev: fields and expand for the apis * dev: move authentication to proxy middleware * dev: fix imports * dev: api serializer updates and paginator * dev: renamed api to app * dev: renamed proxy to api * dev: validation for project, issues, modules and cycles * dev: remove favourites from project apis * dev: states api * dev: rewrite the url endpoints * dev: exception handling for the apis * dev: merge updated structure * dev: remove attachment apis * dev: issue activities endpoints
15 lines
351 B
Python
15 lines
351 B
Python
# Module imports
|
|
from plane.db.models import Workspace
|
|
from .base import BaseSerializer
|
|
|
|
|
|
class WorkspaceLiteSerializer(BaseSerializer):
|
|
"""Lite serializer with only required fields"""
|
|
class Meta:
|
|
model = Workspace
|
|
fields = [
|
|
"name",
|
|
"slug",
|
|
"id",
|
|
]
|
|
read_only_fields = fields |