Note: You are viewing documentation for version v0 of Python. View the latest version.
Python - topic()
Creates a new Topic.
from nitric.resources import topic
from nitric.application import Nitric
updates = topic('updates')
Nitric.run()
Parameters
- Name
name
- Required
- Required
- Type
- string
- Description
The name of the topic to create.
Examples
Create a new topic
from nitric.resources import topic
from nitric.application import Nitric
updates = topic('updates')
Nitric.run()