gingeleski / cucumber-spring-security-tests

Cucumber/BDD security tests example for Java (Spring Boot API).
9 stars 8 forks source link

Refactor existing controllers to accept and yield JSON #38

Closed gingeleski closed 4 years ago

gingeleski commented 4 years ago

Dusting off this project after a while, I assumed the API would output and accept JSON (application/json) data.

The new OpenAPI file (#31) has been started with this in mind.

Not that form-encoded is the worst, but that appears to be how I left it and things would be more desirable as JSON.

gingeleski commented 4 years ago

Need to confirm this is still an issue after #44 overhaul.

(I doubt it is, but needs a spot check.)

gingeleski commented 4 years ago

Confirmed that when I stand up the app, authenticate, and hit the various endpoints, I am universally getting Content-Type: application/json on responses.