Meridian is a powerful mock server designed for developers working with OpenAPI 3.0 specifications. It features persistent state management, request and response validation, and advanced capabilities like resource relationships and a built-in web interface for seamless API testing and inspection.
Meridian is an advanced mock server designed to generate realistic API responses using OpenAPI 3.0 specifications. It features persistent state management, enabling data retention across server restarts, and operates with key functionalities that facilitate testing and development of APIs.
Meridian is continually evolving, with planned enhancements including:
/users/{id}/posts for more complex scenarios.--watch flag for automatic server restarts on file changes, streamlining development.After initializing a Meridian project, users can start the server and test the API using simple commands. For example:
# Start the server
meridian start
# List users
curl http://localhost:8080/users
# Create a user
curl -X POST http://localhost:8080/users \
-H "Content-Type: application/json" \
-d '{"id": "1", "name": "John Doe", "email": "john@example.com"}'
The web interface offers a straightforward way to inspect state and run API tests via http://localhost:8080/_meridian/. Users can view resources, send requests, and monitor the server's status.
Meridian includes built-in validation for requests and responses against the OpenAPI specification. This ensures that required fields, data types, and response schemas meet the defined standards, providing a robust testing environment.
For developers looking to streamline API testing, enhance reliability, and maintain essential state management, Meridian offers a comprehensive solution that improves the API development lifecycle.
No comments yet.
Sign in to be the first to comment.