예제 #1
0
    def get(self, request, env):
        factory = Factory()
        yaml_documents = factory.generateYaml("environnement", env)

        return Response(yaml_documents,
                        content_type="application/json",
                        status=200)
예제 #2
0
    def get(self, request, env):
        data = request.data
        factory = Factory()
        yaml_documents = factory.generateYaml("environnement", env)

        return Response(
            {
                "status": "success",
                "message": "ok",
                "documents": yaml_documents
            },
            content_type="application/json",
            status=200)