-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update APIv2 handling of Tags and UIGroups
- Added eight new endpoints: /api/2/projects/:id/tags/ /api/2/projects/:id/uigroups/ /api/2/uigroups/ /api/2/uigroups/ /api/2/uigroups/:id/ /api/2/uiitems/ /api/2/uiitems/:id/ /api/2/tags/ See roundware.api2.filters for available params - Renamed MasterUI to UIGroup - Renamed UIMapping to UIItem - Changed all mentions of MasterUI and UIMapping in the codebase - Added new fields as per the docs: - Asset.loc_alt_text - Asset.loc_caption - UIItem.parent - Tag.location - Tag.project - Deprecated Tag.relationships into Tag.relationships_old It should be accessible via APIv1 as before - Added new TagRelationship model: {id,tag,parent} - TR.tag points to a Tag object - TR.parent points to another TR, or null - This allows for complex tag trees - Added new Tag.relationships serialization Added basic UIGroup and UIItem serialization - As per the docs, Tags returns id i/o tag_id - Added TagRelationshipAdmin to admin.py - Split get_project_tags into *_old and *_new IAPI/1 aliases *_old, API/2 aliases *_new - Adjusted Django admin to reflect these changes - Fixed the APIv2 tests to account for the responses More tests for APIv2 should be written!
- Loading branch information
1 parent
cd3a4e7
commit c929b4c
Showing
29 changed files
with
750 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.