Giter Site home page Giter Site logo

springmvctdd2's Introduction

Problem 2: Create a Spring Service to consume a REST endpoint. Develop a Spring Boot Microservice which has the following endpoints:

  • /cf
  • /cf/{provider}

The endpoint /cf will return an array of objects with the following information:

[{ description: xx api_version: yy }, { Description: xx1 api_version: yy1 } ]

To provide the information, connect with the following Cloud Foundry endpoints:

https://api.run.pivotal.io/v2/info
https://api.ng.bluemix.net/v2/info

The Endopoint /cf/{provider} will accept the following values: PWC/BLU

In case of an internal error, the endpoints will return an ErrorResponse:

{ ERROR: “ERROR”, DECRIPTION”: “Something goes wrong” }

The scenarios to test are:

• Ok case for /cf • Ok case for /cf/{Provider} • Problem with bad Provider alternative • Internal error • Problem with one request failing • Timeout

springmvctdd2's People

Watchers

 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.