boneburrito / budgetsimple

MIT License
0 stars 0 forks source link

Adding Transactions #11

Closed brukeg closed 1 year ago

brukeg commented 1 year ago

cc @AshMudra for visibility. Here's what I'm following: https://blog.logrocket.com/django-rest-framework-create-api/, and what I'm going to work on this week.

Setup To Do:

Endpoint: bonebudget/transaction/

Endpoint: bonebudget/transaction/<uid:transaction_id>

Models To Do:

Views To Do:

transactions/api/:

class TransactionView(APIView):
    permission_classes = [permissions.IsAuthenticated]

    def get(self):
        pass  # add logic here

    def post(self):
        pass  # add logic here

transaction/api/:

class TransactionDetailView(APIView):
    permission_classes = [permissions.IsAuthenticated]

    def get_object(self):
    """Helper method"""
        pass  # add logic here

    def get(self):
        pass  # add logic here

    def put(self):
        pass  # add logic here

    def delete(self):
        pass  # add logic here
brukeg commented 1 year ago

Done!