Feature #2659
Feature #2632: Conversion to React-Semantic
Add API call reading a work
Start date:
04/15/2020
Due date:
% Done:
100%
Associated revisions
Adding API for reading works
Reference #2659
Adding API for reading works
Reference #2659
History
#1 Updated by Luke Murphey over 4 years ago
Qs:
- How do I render static content?
- How much of this should I render on the background?
- How do I setup the API call without having to rebuild the server in Docker?
- How do I convert results from the ORM to JSON?
Obs:
Solns:- Integrate into server, have it include the new frontend code
- Fix proxy
- Change server to support CORS and change frontend code to support a variable for REST APIs
#2 Updated by Luke Murphey over 4 years ago
The serializer doesn't work on strings, only on querysets.
Obs: Qs:- How can I convert an Django class object to JSON?
- Is there a serializer that would work?
- Can I load the instance as a values list somehow?
- Can I access a model instance as a dictionary?
- No
- Have ORM return a flat list
- Convert each entry
- Rewrite the entire function to make JSON
#3 Updated by Luke Murphey over 4 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Cannot load the template: Invalid filter: 'contains'
Qs:
Solns: