All Projects → mkotsur → Restito

mkotsur / Restito

Licence: mit
Restito - mocking framework for testing rest clients

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Restito

Open Rest
Standard rest server, Base on restify and sequelize
Stars: ✭ 136 (-37.33%)
Mutual labels:  rest, restful-api
Node Express Postgresql Sequelize
Node.js, Express.js, Sequelize.js and PostgreSQL RESTful API
Stars: ✭ 148 (-31.8%)
Mutual labels:  rest, restful-api
Api Generator
Api Generator是一款可以自动解析Controller类抽取REST接口信息并自动上传YApi的IDEA插件。YApi好伴侣,从此维护文档再也不是事儿了!
Stars: ✭ 139 (-35.94%)
Mutual labels:  rest, restful-api
Automatic Api
A list of software that turns your database into a REST/GraphQL API
Stars: ✭ 1,583 (+629.49%)
Mutual labels:  rest, restful-api
Finale
Create flexible REST endpoints and controllers from Sequelize models in your Express app
Stars: ✭ 167 (-23.04%)
Mutual labels:  rest, restful-api
Kafka Zk Restapi
Kafka Zookeeper RESTful API to perform topic/consumer group administration/metric(offset\lag\message) collection and monitor
Stars: ✭ 121 (-44.24%)
Mutual labels:  rest, restful-api
Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (-32.72%)
Mutual labels:  rest, restful-api
Gorsk
🔥 Idiomatic Golang Restful Starter Kit
Stars: ✭ 1,108 (+410.6%)
Mutual labels:  rest, restful-api
Validator Badge
Validate your Swagger JSON/YAML today!
Stars: ✭ 158 (-27.19%)
Mutual labels:  rest, restful-api
Hikaku
A library that tests if the implementation of a REST-API meets its specification.
Stars: ✭ 154 (-29.03%)
Mutual labels:  rest, restful-api
Appy Backend
A user system to bootstrap your app.
Stars: ✭ 96 (-55.76%)
Mutual labels:  rest, restful-api
Graphql2rest
GraphQL to REST converter: automatically generate a RESTful API from your existing GraphQL API
Stars: ✭ 181 (-16.59%)
Mutual labels:  rest, restful-api
Evolutility Server Node
Model-driven REST or GraphQL backend for CRUD and more, written in Javascript, using Node.js, Express, and PostgreSQL.
Stars: ✭ 84 (-61.29%)
Mutual labels:  rest, restful-api
Sandman2
Automatically generate a RESTful API service for your legacy database. No code required!
Stars: ✭ 1,765 (+713.36%)
Mutual labels:  rest, restful-api
Restfm
RESTful web services for FileMaker server.
Stars: ✭ 76 (-64.98%)
Mutual labels:  rest, restful-api
Codeigniter Jwt Sample
CodeIgniter JWT Sample
Stars: ✭ 144 (-33.64%)
Mutual labels:  rest, restful-api
Api Strategy
Equinor API Strategy
Stars: ✭ 56 (-74.19%)
Mutual labels:  rest, restful-api
Openapi Generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Stars: ✭ 10,634 (+4800.46%)
Mutual labels:  rest, restful-api
Appkernel
API development made easy: a smart Python 3 API framework
Stars: ✭ 152 (-29.95%)
Mutual labels:  rest, restful-api
Proteus
Lean, mean, and incredibly fast JVM framework for web and microservice development.
Stars: ✭ 178 (-17.97%)
Mutual labels:  rest, restful-api

Restito - testing framework for rest clients Build Status Maven Central

Restito is a tool which is inspired by mockito and functionally is diametrically opposite to the Rest Assured.

Restito provides a DSL to:

  • Mimic rest server behavior
  • Record HTTP calls to the server
  • Perform verification against happened calls

Which means that it helps you to test an application which makes calls to some HTTP service. Restito sets up a StubServer instance which responds to your application's Calls based on defined Stubs. A stub makes some Action to response when Condition is respected.

For more motivation, please read Motivation section of the Developer's guide.

Developer's guide is the best place to start. FOR LOTS OF EXAMPLES CLICK -> HERE <- :-)

For more details you can also check Restito's javadoc.

Quick example:

package com.xebialabs.restito;

...

public class SimpleRequestsTest {

    private StubServer server;

    @Before
    public void start() {
        server = new StubServer().run();
        RestAssured.port = server.getPort();
    }

    @After
    public void stop() {
        server.stop();
    }

    @Test
    public void shouldPassVerification() {
        // Restito
        whenHttp(server).
                match(get("/demo")).
                then(status(HttpStatus.OK_200));

        // Rest-assured
        expect().statusCode(200).when().get("/demo");

        // Restito
        verifyHttp(server).once(
                method(Method.GET),
                uri("/demo")
        );
    }

}

Maven instructions

<dependency>
    <groupId>com.xebialabs.restito</groupId>
    <artifactId>restito</artifactId>
    <version>0.9.3</version>
</dependency>

Building instructions

$ gradle clean build
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].