Created
September 11, 2015 18:03
-
-
Save kellegous/3bfae7dc1925eeba69cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class Api_Resource_Public_Taxonomy_Node implements Api_ResourceSpec_ITyped { | |
| const DESC = "A node in the taxonomy of items on Etsy"; | |
| use Api_ResourceSpec_Typed; | |
| use Api_ResourceSpec_Declaration; | |
| /** | |
| * @var array | |
| */ | |
| public static $spec_declaration = [ | |
| 'property' => [ | |
| 'id' => 'DataType_ID', | |
| 'name' => 'DataType_String', | |
| 'path' => 'DataType_String', | |
| 'level' => 'DataType_Int', | |
| 'parent' => 'DataType_String', | |
| 'parent_id' => 'DataType_Defaultable[DataType_ID,null]', | |
| 'short_name' => 'DataType_Defaultable[DataType_String,null]', | |
| 'page_title' => 'DataType_Defaultable[DataType_String,null]', | |
| 'all_name' => 'DataType_Defaultable[DataType_String,null]', | |
| 'description' => 'DataType_Defaultable[DataType_String,null]', | |
| 'nav' => 'DataType_Optional[DataType_Map[DataType_String,DataType_Int]]', | |
| 'category_id' => 'DataType_Int', | |
| 'children_ids' => '[DataType_ID]', | |
| 'is_supplies_top_level' => 'DataType_Defaultable[DataType_Boolean,null]', | |
| 'full_path_taxonomy_ids' => [ | |
| '[DataType_Int]', | |
| 'From the root to the current node, these are the ids that lead down this tree' | |
| ], | |
| "source_finder" => 'DataType_String' | |
| ], | |
| 'resource' => [ | |
| 'children' => 'Public_Taxonomy_Node*' | |
| ] | |
| ]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment