Git Product home page Git Product logo

coderush_apis's Introduction

islam-kamel

Hello Friend ๐Ÿ‘‹


๐Ÿ‘จโ€๐Ÿ’ป About Me :

work as a Full-Stack developer, ๐Ÿง‘โ€๐Ÿ’ป
use Python language with the wonderful framework Django or JavaScript with React.js
to Make Awesome Web Applications,
have Experience to Create RESTful API and I like to create scripts and Command Line Tools, 
To Improve Developer Experience, 
always look for everything that is new in the world of technology, 
I like to be the best always โค๏ธ.

๐Ÿ“ซ You can reach me: Islam Kamel


๐Ÿ› ๏ธ Languages and Tools :

ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย 

๐Ÿ”ฅ My Stats :

GitHub Streak

Top Langs

coderush_apis's People

Contributors

islam-kamel avatar

Stargazers

 avatar

Watchers

 avatar

coderush_apis's Issues

Fix code scanning alert - Reflected server-side cross-site scripting

Tracking issue for:

code tracking

    def post(self, request):
        self.posts_list = request
        data = self.posts_list
        try:
            if not data["data"] is None:
                return Response(data["data"], status=data["status"])
        except KeyError:
            return Response(data["errors"], status=data["status"])
  • update process manage
class CreatePost(AbstractCreatePostManager, DBManager):

    def set_post(self, request=None):
        # self._set_slug__(request)
        serializer = self.get_serializer(data=request.data)
        return self.set_data(serializer, request)
  • serializer data
class Serializer:
    """
    This class is used to convert data to  Json
    It is required because instance.
    """
    def get_serializer(self, instance=None, data=Empty, **kwargs):
        isMany = kwargs.pop('many', False)
        if data is not Empty:
            return PostSerializer(instance, data=data, many=isMany)
        return PostSerializer(instance, many=isMany)
  • save data on DB
class DBManager(AbstractSaveDB):
    __STATUS_CODE = status.HTTP_200_OK
    __SERIALIZER = None

    def __save_post__(self, request):
        if self.__SERIALIZER.is_valid():
            self.__SERIALIZER.save(create_by=request.user)
            return self.response_handel(self.__SERIALIZER, self.__STATUS_CODE)

        return self.response_handel(self.__SERIALIZER,
                                    status_code='errors')

    def set_data(self, serializer, request):
        self.__SERIALIZER = serializer
        return self.__save_post__(request)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.