Code Monkey home page Code Monkey logo

gs-rest-service's Introduction

Coding Quiz

Intro

This project contains a simple REST API built on Spring Boot that has been forked from Building a RESTful Web Service.

The aim of this exercise is to implement a web service that can determine whether words are either a palindrome or an anagram of a palindrome.

A word is defined to be a palindrome if it is spelt the same backwards as it is forwards, for example, 'kayak'.

A word is defined to be an anagram of a palindrome if its letters can be rearranged to form a palindrome (a sequence of characters that is the same backwards as it is forwards), for example, 'bzzubu' can be arranged to spell 'buzzub', which is a palindrome.

A small suite of tests has been created called WordControllerTests. Your code must pass these tests.

Exercise

This repository contains a class called WordController in the hello package.

You must fork this repository, implement the /words/{word} endpoint inside the WordController, and commit your code.

The endpoint must take a word as a paramater and return a response of the form:

{
    "word": "{word}",
    "palindrome": true/false,
    "anagramOfPalindrome": true/false
}

eg. /words/bzzubu should return:

{
    "word": "bzzubu",
    "palindrome": false,
    "anagramOfPalindrome": true
}

gs-rest-service's People

Contributors

bclozel avatar benoitf avatar btalbott avatar buzzardo avatar cbeams avatar dsyer avatar e-n-l avatar gberaudo avatar gregturn avatar habuma avatar jrjena136 avatar mbeaudru avatar nickstreet avatar royclarkson avatar

Watchers

 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.