Giter Site home page Giter Site logo

budgetme-rest-api's Introduction

Hello Fellow < Developers />!๐Ÿ‘‹

Hi! My name is Pierre-Olivier Blouin. Thank You for taking the time to view my GitHub Profile ๐Ÿ˜„
  • ๐Ÿ‘จโ€๐Ÿ’ป On the professional side, I'm currently working with new technologies, mainly Kotlin and Temporal, to build an automated pipeline to process corporate actions

  • ๐ŸŒฑ On the personal side, Iโ€™m currently learning to be a dad so less time to work on projects at this time

  • ๐Ÿ’ฌ Talk to me about home automation, MTG, video games (big SNES fan) and running ๐Ÿƒ

Skills

Connect with me ๐Ÿค

My GitHub Stats ๐Ÿ“Š

poblouin's GitHub stats

My Top Languages ๐Ÿ’ป

poblouin's top languages

Some Programming Humor for you ๐Ÿ˜†

Jokes Card

budgetme-rest-api's People

Contributors

poblouin avatar

Stargazers

 avatar

Watchers

 avatar

budgetme-rest-api's Issues

PUT not working

read_only nested object +
fail to update when name is the same, other attribute change

PUT TransactionCategory fails

Internal Server Error: /api/v1/transaction-category/9
Traceback (most recent call last):
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/viewsets.py", line 95, in view
return self.dispatch(request, *args, **kwargs)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/views.py", line 494, in dispatch
response = self.handle_exception(exc)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/views.py", line 454, in handle_exception
self.raise_uncaught_exception(exc)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/views.py", line 491, in dispatch
response = handler(request, *args, **kwargs)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/mixins.py", line 70, in update
self.perform_update(serializer)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/mixins.py", line 80, in perform_update
serializer.save()
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/serializers.py", line 209, in save
self.instance = self.update(self.instance, validated_data)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/serializers.py", line 945, in update
raise_errors_on_nested_writes('update', self, validated_data)
File "/home/poblouin/code/budgetme-rest-api/env/lib/python3.6/site-packages/rest_framework/serializers.py", line 797, in raise_errors_on_nested_writes
class_name=serializer.class.name
AssertionError: The .update() method does not support writable nested fields by default.
Write an explicit .update() method for serializer budgetme.apps.types.serializers.TransactionCategorySerializer, or set read_only=True on nested serializer fields.
[22/Feb/2018 02:03:14] "PUT /api/v1/transaction-category/9 HTTP/1.1" 500 18617

Transaction POST not working

curl -X POST http://localhost:8000/api/v1/transaction -d '{"amount": "40.00", "date": "2017-12-27", "transaction_category":{"name":"Restaurant", "budget":{"name": "Hello", "weekly_amount": "100.00"}}}' --header "Content-Type:application/json" --header "Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyLCJ1c2VybmFtZSI6InBvYmxvdWluQHRlc3QuY29tIiwiZXhwIjoxNTE1MDMwNzA2LCJlbWFpbCI6InBvYmxvdWluQHRlc3QuY29tIiwib3JpZ19pYXQiOjE1MTQ0MjU5MDZ9.SpTZr4cIIc57WbClYDZG2hWp6Slks6rYPzcLYiHOL-Y"

TypeError: int() argument must be a string, a bytes-like object or a number, not 'collections.OrderedDict'
[28/Dec/2017 02:29:36] "POST /api/v1/transaction HTTP/1.1" 500 19366

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.