GithubHelp home page GithubHelp logo

real-world-kata-1's Introduction

Real World Kata #1 - Users API

This kata differs from traditional ones as it attempts to provide you with an example of something you are likely to encounter in the real world.

The aim of this is for people to implement new features utilising Outside-in TDD (from the Acceptance test inwards).

Remember to start with a failing acceptance test, and then work your way writing failing test until you have implemented the required behaviour to get it to green.

The tasks

Starting with a new acceptance test (see the first acceptance test) implement the features described here. They are intentionally vague as to give you some freedom.

Feature #1 - User not found

You need to implement the scenario when a client requests a user that does not exist. For example, there are no users and a client requests a user with an ID of 12.

Feature #2 - Get all users

When a client requests all users, you must return all users found.

Feature #3 - Add a user

Add the ability for a client to add a user via the API.

Feature #4 - Delete a user

Enable clients of the API to delete a user.

Feature #5 - Search for user by name

Enable clients of the API to search for users using their name.

Running the tests

To run the tests, execute the below in a terminal of your choice at the root of the project:

$ ./gradlew test

real-world-kata-1's People

Contributors

upsd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.