Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[judge-d-24] renamed endpoint /contracts to /contracts/services #71

Closed
wants to merge 2 commits into from

Conversation

karolkalinski
Copy link

In order to increase user experience when working with API I have changed its structure. It is first part of changes towards /contracts/services/{service-name}/versions/{version}

@coveralls
Copy link

coveralls commented Jul 5, 2019

Pull Request Test Coverage Report for Build 275

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.858%

Totals Coverage Status
Change from base Build 270: 0.0%
Covered Lines: 486
Relevant Lines: 507

💛 - Coveralls

@Felipe444 Felipe444 self-requested a review July 8, 2019 12:02
@@ -56,6 +56,16 @@ public ServiceContractsDto create(@PathVariable(name = "provider") String provid
return serviceContractsRepository.getServiceNames();
}

@GetMapping(value = "/contracts", produces = MediaType.APPLICATION_JSON_VALUE)
@ApiOperation(value = "Get contracts registered", nickname = "get names of services")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get registered contracts

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation fixed

def 'should calling /contracts should redirect to /contracts/services to improve api discovery'() {
given:
when:
def response = mockMvc.perform(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indents here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code indented

DONE:
* improved endpoint documentation
* test code indented and given section removed from ContractsControllerIT
@karolkalinski
Copy link
Author

Merged

@karolkalinski karolkalinski deleted the judge-d-24-endpoint-renamed branch August 6, 2019 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants