Paul Konstantin Gerke
4f325ba07b
Remove BabyBuddy prefix from Tags-model
2022-03-02 21:53:51 +01:00
Paul Konstantin Gerke
c665ebb181
Applied black
2022-02-27 20:36:31 +01:00
Paul Konstantin Gerke
c397836e68
Add dynamic tag creation
2022-02-18 00:22:01 +01:00
Paul Konstantin Gerke
5046b754e5
Add api-serializer
2022-02-15 22:24:13 +01:00
Paul Konstantin Gerke
bf49cc92ad
Initial (bugged) work on tag editor
2022-02-15 10:13:35 +01:00
Christopher C. Wells
cd946280cb
Format code with black
2022-02-09 16:00:30 -08:00
Paul Konstantin Gerke
5e1248e798
Fix tests to test new behavior
...
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Paul Konstantin Gerke
c1a0abd1f7
Way simpler implementation of the new endpoints
...
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Paul Konstantin Gerke
53d4759add
Fix linter messages
...
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Paul Konstantin Gerke
63d0b1373a
Reworked POST to PATCH endpoints
...
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Paul Konstantin Gerke
cf58ae6aba
Add timer restart and stop triggers
...
Restarting and stopping timers from the API was not allowed. This
commit adds api/timer/{id}/[stop|restart]/ triggers that can be
posted to through the REST-API to start/stop timers.
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Yulian Kuncheff
0af4521005
Linting and faker changes
2021-12-31 09:19:53 -05:00
Yulian Kuncheff
9b604627a1
Add Height, Head Circumference, and BMI, corresponding reports, and move to separate menu with Weight and Temperature.
2021-12-31 09:19:53 -05:00
Christopher C. Wells
507e0c383d
Ensure API `OPTIONS` captures class-based filters
2021-11-19 11:14:49 -05:00
Christopher C. Wells
54a24423c0
Fix `date` filter for models with `time` field
...
Fixes #342
2021-11-19 11:14:48 -05:00
Christopher C. Wells
25471b2dc6
Add date filters to all relevant models
2021-10-31 13:29:43 -07:00
Christopher C. Wells
23f5f76db4
Add date filter to models with `time` field
...
Fixes #328
2021-10-31 13:29:43 -07:00
jcgoette
4739d909e5
add tests
2021-02-09 18:10:36 -08:00
jcgoette
5f2c31c5e3
lint
2021-02-09 18:10:36 -08:00
jcgoette
172167e6a1
add notes to applicable APIs
2021-02-09 18:10:36 -08:00
Christopher C. Wells
fddde9d46f
Add OpenAPI schema endpoint to API ( #147 )
2020-06-19 14:56:05 -07:00
Christopher C. Wells
4e5153daed
Default to current user on timer POST ( #134 )
2020-06-19 14:23:43 -07:00
Christopher C. Wells
910aff4d3b
Always override child with Timer.child value ( #131 )
2020-03-14 13:33:05 -07:00
Christopher C. Wells
7276dc331a
Add "timer" field information to OPTIONS ( #131 )
2020-03-14 13:33:05 -07:00
Christopher C. Wells
3071050881
Add tests for new "timer" argument ( #131 )
2020-03-14 13:33:05 -07:00
Christopher C. Wells
6d75dde424
Update serializers to accept a "timer" argument ( #131 )
2020-03-14 13:33:05 -07:00
Christopher C. Wells
76b7e90396
Pass full instance for API PATCH operations ( #126 )
...
This is necessary in order to allow partial updates of entries but also
provide full context for model `clean()`` methods that use multiple fields.
2020-03-13 20:29:07 -07:00
Christopher C. Wells
0c086e6469
Use a base class for API tests
2020-03-13 20:29:07 -07:00
Christopher C. Wells
0fbb4d92fc
Add expected PATCH and DELETE test cases ( #126 )
...
Some of these tests are failing. Additional changes may be needed to models or
the API serializers.
2020-03-13 20:29:07 -07:00
Christopher C. Wells
0082f0d838
Add PATCH and DELETE support ( #126 )
2020-03-13 20:29:07 -07:00
Christopher C. Wells
a0ec0591e4
Remove timezone overrides from tests
...
Tests will now use the timezone from a Settings model instance.
2020-02-14 10:56:13 -08:00
Christopher C. Wells
8421b14088
Update `api` app for latest core model changes
2020-01-31 09:09:01 -08:00
Christopher C. Wells
c51e755c0f
Add Diaper Change "amount" field data to API
2020-01-26 14:30:00 -08:00
Christopher C. Wells
243b9ef1c1
Add Temperature data to API.
2019-05-16 22:13:14 -07:00
Christopher Charbonneau Wells
4b7bb69218
Add support for Django 2.1 and Django Filters 2.0.0.
2018-08-04 13:00:51 -07:00
Christopher Charbonneau Wells
5dc372281b
Remove all unicode_literals imports.
2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells
f2a8cdec2d
Update URL definitions to Django 2.0 style.
2017-12-13 18:12:32 -05:00
Christopher Charbonneau Wells
2659063e40
Add API tests.
2017-12-07 16:34:48 -05:00
Christopher Charbonneau Wells
9e220d29f4
Add a custom API metadata class to include filters on OPTIONS responses.
2017-12-05 19:27:28 -05:00
Christopher Charbonneau Wells
c37dabdbd1
Disable unused API methods and require model add permissions for OPTIONS.
2017-12-05 16:40:10 -05:00
Christopher Charbonneau Wells
ed84f950bc
Add a custom serializer for core models.
...
This serializer associates the core models with their related child fields and runs model clean() methods during POST requests.
2017-12-05 16:31:37 -05:00
Christopher Charbonneau Wells
e92d3f361e
Misc. Django 2.0 update changes.
2017-12-03 16:52:27 -05:00
Christopher Charbonneau Wells
067be4bf07
Add weight tracking.
2017-11-09 21:15:09 -05:00
Christopher Charbonneau Wells
d3333d68b4
Replace custom API filters implementation with django-filter.
2017-11-02 06:05:12 -04:00
Christopher Charbonneau Wells
0d7382407c
Refactor some utils functions sligthly and add tests.
2017-10-30 20:45:46 -04:00
Christopher Charbonneau Wells
e45101b75c
Rename project Baby Buddy.
2017-10-22 14:00:42 -04:00
Christopher Charbonneau Wells
8eef1574e4
Fix API child and user serializers.
...
The HyperlinkedIdentityField got broken somewhere along the way here and I am not sure, but this is not a priority right now.
2017-10-21 17:35:34 -04:00
Christopher Charbonneau Wells
23acc006d4
Linting fixes.
2017-08-22 13:36:49 -04:00
Christopher Charbonneau Wells
37f28c3ff7
Add slug field to Child.
2017-08-18 08:12:50 -04:00
Christopher Charbonneau Wells
1b015d4dde
Add user association to Timer (WIP - adding timer broken)
2017-08-17 14:42:44 -04:00