Skip to main content

Id

The id is a number type typically used as a primary key and a foreign key in other tables. Use id as the default identifier, unless the query parameter explicitly requires a SnowflakeId.

SnowflakeId

The snowflakeId is a string type, derived from a BigInt. It should be used exclusively as a slug for specific post URLs.

Example Post URL

/username/snowflakeId This is why GET Post API uses username & snowflakeId:

GET Post API

Get post by username and snowflakeId