Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TramitesSearchApi(APIView):
- @swagger_auto_schema(
- operation_description="Busca los tramites de los Ciudadanos",
- request_body=openapi.Schema(
- type=openapi.TYPE_OBJECT,
- required=["rut,"],
- properties={
- "rut": openapi.Schema(type=openapi.TYPE_STRING),
- },
- ),
- security=[],
- tags=["Buscar Tramite"],
- responses={
- "200": openapi.Response(
- description="Devuelve listado de tramites del ciudadano",
- examples={
- "application/json": {
- "results": [
- {
- "dato1": "xxxxxxxxx",
- "dato2": "Mediación",
- }
- },
- ],
- "maps": [
- {
- "name": "ux",
- "options": {"filter": False, "display": "excluded"},
- },
- {
- "options": {"display": "excluded"},
- "label": "Tipo",
- "name": "tipo_reclamo",
- },
- {"label": "Folio", "name": "folio"},
- {
- "options": {"display": "excluded", "filter": False},
- "label": "RUT",
- "name": "run_rec",
- },
- {
- "label": "Reclamante/Solicitante",
- "name": "nombre_solicitante",
- },
- {"label": "Fecha Ingreso", "name": "fecha_ingreso"},
- {"label": "Tipo de tramite", "name": "tramitacion"},
- {"label": "Entidad requerida", "name": "reclamado"},
- {"label": "Etapa actual", "name": "fase.nombre"},
- {
- "options": {"display": "excluded", "filter": False},
- "label": "Estado reclamo",
- "name": "estado_reclamo",
- },
- {
- "options": {"display": "excluded", "filter": False},
- "label": "Materia",
- "name": "materia",
- },
- ],
- }
- },
- )
- },
- )
- def post(self, request, *args, **kwargs):
- .......
- return Response(
- {
- ......
- },
- status=status.HTTP_200_OK,
- )
Add Comment
Please, Sign In to add comment