Code Monkey home page Code Monkey logo

api's Introduction

simple-game-service

This is very simple service that returns an id and text for a game that is requested in the 'name' query parameter. e.g. http://localhost:8080/game?name=Chess should return json containing following fields: {"id":some number,"text":"some string"}

If there is no query parameter then the game endpoint by default sets game to Sudoku, e.g. http://localhost:8080/game should return json containing following fields: {"id":some number,"text":"some string"}

id is a counter that increases by a certain amount every time a request is made to the server.

Prerequisites:

  1. Git
  2. Java 8
  3. Access to commandline to run commands.
  4. Internet connection to download dependencies.
  5. An IDE such as Eclipse.

Steps:

  1. Fork the repo in github.com using your github account. If you dont have a github account, please create one and then fork the repo.
  2. Once you fork the repo, it should be available on your account now. Click the 'Clone or Download' button to copy the link.
  3. Clone the repo on your machine.
  4. Use a build tool such as maven or gradle (binaries are provided in the repo for help but its not necessary to use them) to produce a jar file.
  5. Run the jar using java cmd.
  6. Access the server using an http client.

Tasks:

  1. Come up with functional tests for the application.
  2. Write tests/assertions in your favorite programming language.
  3. Open a pull request for code review.

api's People

Contributors

hbahuguna2 avatar

Watchers

James Cloos avatar Nomad 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.