Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !2859

Use RestOperations interface in RestTemplate Java library

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/chrylis/pr/use-rest-operations-interface into master May 10, 2019
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 93

Created by: chrylis

Spring provides the RestOperations interface as the base API for the RestTemplate model, and the interface should be used whenever practical. Switching to the interface instead of the implementing class particularly makes test integrations easier both for code consuming the ApiClient and for testing server implementations through it with MockMvc.

This improvement should apply cleanly against 3.4 and 4.0-SNAPSHOT.

The petstore generator completed successfully for resttemplate-withxml, but plain resttemplate complains about existing directories with mkdir; I can include all those files as well if needed but didn't want to contribute a partial set.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/chrylis/pr/use-rest-operations-interface