Metadata Directives
Metadata Directives
Section titled “Metadata Directives”Metadata directives help you organize, identify, and categorize your requests.
@name — Request Name
Section titled “@name — Request Name”Give a human-readable name to any request:
@name Get UsersGET https://api.example.com/usersThe name appears in the sidebar, code lenses, and response panel.
@id — Unique Identifier
Section titled “@id — Unique Identifier”A 6-character alphanumeric ID for referencing requests in @pre chains.
@id abc123@name LoginPOST https://api.example.com/auth/login@collection — Group into Collections
Section titled “@collection — Group into Collections”Organize requests into named collections:
@collection Auth API@name LoginPOST https://api.example.com/auth/loginCollections appear as groups in the Rext sidebar.
@group — Sub-grouping
Section titled “@group — Sub-grouping”Create sub-groups within collections using / separators for nested levels:
@collection Auth API@group Users / Admin@name Create AdminPOST https://api.example.com/admin/usersThis creates the hierarchy: Auth API → Users → Admin → Create Admin
@tags — Filtering Tags
Section titled “@tags — Filtering Tags”Add comma-separated tags for filtering:
@tags auth, critical, v2@name LoginPOST https://api.example.com/auth/login@deprecated — Mark as Obsolete
Section titled “@deprecated — Mark as Obsolete”Mark a request as deprecated. It will display with a visual indicator:
@deprecated@name Old LoginPOST https://api.example.com/v1/loginComplete Example
Section titled “Complete Example”@collection Auth API@group Users / Admin@tags auth, admin, critical@id x9k2m1@name Create Admin UserPOST https://api.example.com/admin/usersContent-Type: application/json
{ "name": "Admin", "role": "admin"}Next Steps
Section titled “Next Steps”- Learn about
@queryand@bodydirectives - Explore shared configuration with
@config