GET /api/v1/viacomservices

Get Started. It's Free
or sign up with your email address
Rocket clouds
GET /api/v1/viacomservices by Mind Map: GET /api/v1/viacomservices

1. Response with default values: { "id":1, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":5, "devNum":6, "qaNum":2, "testCoverage":100.0 }

2. With every new request id = id + 1

3. Override default params: ?service=mediaresolver&team=Unknown&bugNum=2&devNum=4&qaNum=1&testCoverage=99.9

3.1. Response: {"id":10, "service":"Hello, mediaresolver!", "team":"Unknown", "bugNum":2, "devNum":4, "qaNum":1, "testCoverage":99.9}

4. ?team=Bet or ?team=Noggin "team" value is returned in upper case

4.1. Response: {"id":2, "service":"Hello, PMT!", "team":"BET", "bugNum":5, "devNum":6, "qaNum":2, "testCoverage":100.0}

5. If devNum >= 7 and devNum <= 12, then qaNum = qaNum (default) + 2, e.g.: ?devNum=10

5.1. Response: {"id":3, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":5, "devNum":10, "qaNum":4, "testCoverage":100.0}

6. If devNum >= 13 and devNum <= 16, then qaNum = qaNum (default) + 4, e.g.: ?devNum=16

6.1. Response: {"id":3, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":5, "devNum":10, "qaNum":6, "testCoverage":100.0}

7. If bugNum >= 15 and bugNum >= 25, then testCoverage = testCoverage (default) - 10, e.g.: ?bugNum=20

7.1. Response: {"id":5, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":20, "devNum":6, "qaNum":2, "testCoverage":90.0}

8. If bugNum >= 26 and bugNum >= 35, then testCoverage = testCoverage (default) - 20, e.g.: ?bugNum=31

8.1. Response: {"id":6, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":31, "devNum":6, "qaNum":2, "testCoverage":80.0}

9. If bugNum >= 36 and bugNum >= 50, then testCoverage = testCoverage (default) - 30, e.g.: ?bugNum=43

9.1. Response: {"id":7, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":43, "devNum":6, "qaNum":2, "testCoverage":70.0}

10. If bugNum >= 51 and bugNum >= 80, then testCoverage = testCoverage (default) - 50, e.g.: ?bugNum=80

10.1. Response: {"id":8, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":80, "devNum":6, "qaNum":2, "testCoverage":50.0}

11. If bugNum >= 81 and bugNum >= 110, then testCoverage = testCoverage (default) - 80, e.g.: ?bugNum=101

11.1. Response: {"id":9, "service":"Hello, PMT!", "team":"WebPlayers", "bugNum":101, "devNum":6, "qaNum":2, "testCoverage":20.0}

12. Service instances: - id (int): request number - service (String): service name - team (String): team name - bugNum (int): number of bugs - devNum (int): number of developers - qaNum (int): number of QAs - testCoverage (double): test coverage