invantive documentation
Invantive SupportforenAnmelden / Eintragen

Categories: Discourse Categories

read only REST

  • Katalog: Discourse
  • Schema: Categories
  • Label: Categories

Get a list of categories The Categories endpoint returns a list of all the categories for your discourse site that you have access to.

Es können nur Daten abgerufen werden.

Zusammenfassung

The Categories endpoint returns a list of all the categories for your discourse site that you have access to.

API-Quelle

  • Endpunkt: /categories.json
  • Operation: get /categories.json

Leistungsmerkmale

Characteristic Value
Durchschnittliche Zugriffsverzögerung (ms) 243
Zeilen pro Minute schreiben 219

Das Ergebnis kann auf dem Client im Cache zwischengespeichert werden.

Tabellenspalten

Die Spalten der Tabelle Categories sind unten aufgeführt. Jede Spalte hat einen SQL-Datentyp. Beim Einfügen und Aktualisieren muss für jede erforderliche Spalte jederzeit ein neuer Wert angegeben werden der nicht Null ist.

Name Datentyp Label Required Marks Documentation
background_url varchar2 Hintergrund-URL writable, background_url
can_create_category char Kategorie anlegen filters on the platform, writable, ::ancestor.can_create_category
can_create_topic char Thema erstellen filters on the platform, writable, ::ancestor.can_create_topic
can_edit char Kann bearbeiten writable, can_edit
can_vote char Ist wahlberechtigt filters on the platform, writable, can_vote
color varchar2 Colour writable, color
default_list_filter varchar2 Standardfilter für die Liste filters on the platform, writable, default_list_filter
default_top_period varchar2 Standard-Top-Zeitraum filters on the platform, writable, default_top_period
default_view varchar2 Standard View filters on the platform, writable, default_view
description varchar2 Description writable, description
description_excerpt varchar2 Auszug aus der Beschreibung writable, description_excerpt
description_text varchar2 Beschreibungstext writable, description_text
draft char Draft filters on the platform, writable, ::ancestor.draft
draft_key varchar2 Entwurfsschlüssel filters on the platform, writable, ::ancestor.draft_key
draft_sequence int64 Entwurfssequenz filters on the platform, writable, ::ancestor.draft_sequence
has_children char Hat Kinder writable, has_children
id int64 ID writable, id
is_uncategorized char Ist „Unkategorisiert“ filters on the platform, writable, is_uncategorized
logo_url varchar2 Logo URL writable, logo_url
minimum_required_tags int32 Erforderliche Mindestanzahl an Tags filters on the platform, writable, minimum_required_tags
name varchar2 Name writable, name
navigate_to_first_post_after_read char Zum ersten Beitrag nach dem Gelesenen springen filters on the platform, writable, navigate_to_first_post_after_read
notification_level varchar2 Benachrichtigungsstufe writable, notification_level
num_featured_topics int32 Anzahl der vorgestellten Themen filters on the platform, writable, num_featured_topics
permission int64 Permission writable, permission
position int64 Position writable, position
post_count int64 #Posts writable, post_count
read_restricted char Zugriff eingeschränkt writable, read_restricted
show_subcategory_list char Unterkategorienliste anzeigen filters on the platform, writable, show_subcategory_list
slug varchar2 Slug writable, slug
sort_order varchar2 Sortierungsrichtung filters on the platform, writable, sort_order
subcategory_list_style varchar2 Stil der Unterkategorienliste filters on the platform, writable, subcategory_list_style
text_color varchar2 Textfarbe writable, text_color
topic_count int64 #Topics writable, topic_count
topic_template varchar2 Themen-Schablone writable, topic_template
topic_url varchar2 Themen-URL writable, topic_url
topics_all_time int64 Themen aller Zeiten writable, topics_all_time
topics_day int64 Thementag writable, topics_day
topics_month int64 Themenmonat writable, topics_month
topics_week int64 Themenwoche writable, topics_week
topics_year int64 Themen Jahr writable, topics_year
uploaded_logo_height int32 Höhe des hochgeladenen Logos filters on the platform, writable, uploaded_logo.height
uploaded_logo_id int32 Hochgeladene Logo-ID filters on the platform, writable, uploaded_logo.id
uploaded_logo_url varchar2 URL des hochgeladenen Logos filters on the platform, writable, uploaded_logo.url
uploaded_logo_width int32 Breite des hochgeladenen Logos filters on the platform, writable, uploaded_logo.width

Verwiesen von

Anmerkungen zu dieser Version

Was hat sich in den Tabellen, Spalten, Attributen und Funktionen des Treibers mit jeder neuen Version geändert:

Änderungen an dieser Tabelle, 26.0 bis 27.0

Discourse.Categories.Categories: Typänderungen

Der Typ von „Discourse.Categories.Categories“ ändert sich von „Tabelle“ zu „Tabellefunction“.

Was ist zu tun?

Überprüfen Sie vor dem Upgrade alle Statements, Views und Skripte, die diese Spalte verwenden.

  • kann ein Statement unterbrechen
  • table → tablefunction
  • Bedeutung 3

  • - background_url
  • - draft
  • - draft_key
  • - draft_sequence
  • - logo_url
  • ~ minimum_required_tags (database_data_type: int32 → int64)
  • ~ minimum_required_tags (dotnet_data_type: int32 → int64)
  • ~ notification_level (database_data_type: varchar2 → int64)
  • ~ notification_level (dotnet_data_type: string → int64)
  • ~ num_featured_topics (database_data_type: int32 → int64)
  • ~ num_featured_topics (dotnet_data_type: int32 → int64)
  • + emoji (varchar2)
  • + icon (varchar2)
  • + sort_ascending (varchar2)

8 weitere Änderungen

Der Parameter include_subcategories wird zu „Discourse.Categories.Categories“ hinzugefügt.

Optional.

  • Bedeutung 2

  • + style_type (varchar2)
  • + subcategory_count (int64)
  • + topic_title_placeholder (varchar2)
  • + uploaded_background (varchar2)
  • + uploaded_background_dark (varchar2)
  • + uploaded_logo (varchar2)
  • + uploaded_logo_dark (varchar2)

Alle Treiberwechsel, 26.0 bis 27.0