Difference between revisions of "Legacy THNapi:Views"
(Found out why this command isn't working) |
|||
Line 49: | Line 49: | ||
* View name: html_test_page | * View name: html_test_page | ||
− | This is for testing the CSS stylesheet in External websites. This command | + | This is for testing the CSS stylesheet in External websites. This command currently does not work as the view classes need restructuring to allow non-item lists to be generated. |
[[Category:THN HTML API commands|View names]] | [[Category:THN HTML API commands|View names]] | ||
[[Category:Wiki Item DB tags|View names]] | [[Category:Wiki Item DB tags|View names]] |
Revision as of 20:37, 1 April 2008
Item DB Views
The THN Item DB has a feature called "views". They are like Database views, in that it shows a subset of data from the Item DB. For example there is a view to show WoC items, which will scan the database for any item that is flagged as a WoC item, or needs a WoC skill to use it.
Views are also used to provide access to additional Item DB functions, such as the Search page.
Not all views can be used outside the main Techhaven Network website. Some of these views are specialised for a purpose that isn't suitable for an external API user (For exmaple, there is a Google Sitemap view, which is used for Google.)
List of views
These are the current views avaialble to THN API users.
Faction Supply Manager Items
- View name: fsm
- Optional parameter: Faction code
This command can't be used Externally until the next Item DB/THN API release.
Faction Database Items
- View name: fdb
- Optional parameter: Faction code
This command can't be used Externally until the next Item DB/THN API release.
Rare Items
- View name: rares
Mr Jones Items
- View name: mr-jones
Recycle items
- View name: recycle
WoC items
- View name: woc-items
PPU Items Grouped
- View name: ppu
THN API CSS Test Page
- View name: html_test_page
This is for testing the CSS stylesheet in External websites. This command currently does not work as the view classes need restructuring to allow non-item lists to be generated.