What is a workspace?
A workspace is a self-contained directory that stores:- REST API requests and collections
- Environment variables and secrets
- Email testing configurations
- Groups and organizational structure
- Workspace metadata and settings
Directory structure
When you initialize a Yasumu workspace in a project, it creates ayasumu directory with the following structure:
The
yasumu-lock.json file is automatically managed by Yasumu for synchronization purposes. You should commit it to version control but avoid editing it manually.Workspace configuration file
The mainworkspace.ysl file contains workspace-level metadata and organizational structure:
Workspace fields
metadata
metadata
Contains the workspace identifier, name, and version number.
id: Unique identifier for the workspacename: Human-readable workspace nameversion: Schema version for compatibility
snapshot
snapshot
Timestamp of the last synchronization, used for conflict resolution and change tracking.
groups
groups
Organizational structure for entities. Groups help organize REST requests, emails, and other entities into logical collections.
id: Unique identifier for the groupname: Group display nameentity: Type of entities in this group (e.g.,rest)parentId: Parent group ID for nested structuresworkspaceId: Reference to the owning workspace
Working with workspaces
Yasumu provides a programmatic API for managing workspaces through the core library:Version control with Git
Collaborate with team
Team members can clone the repository and immediately access all API definitions:
Workspace metadata
TheWorkspace class provides access to important metadata:
Identity
id: Unique identifiername: Display namepath: File system location
Timestamps
createdAt: Creation dateupdatedAt: Last modificationlastOpenedAt: Last access time
Best practices
Next steps
REST API Testing
Learn how to create and execute REST API requests
Environments
Configure environment variables and secrets
Schema Language
Deep dive into the .ysl format
Email Testing
Test email functionality with the catch-all SMTP server