- We are here to practice the usage of [SpringBoot].
- We are going to use [Kotlin][kotlin].
- We are going to practice pair programming.
This repository contains an SpringBoot application.
Your task as Spring Boot Developer is to *create a rest application. You will do so step by step and always using tests to verify everything is still working.
Our recommendation for this exercise is:
-
Before starting
- Fork this repository.
- Checkout
master
branch. - Execute the application, see if it compiles and import correctly gradle dependencies.
-
Exercise
- Create a SuperHero, that contains an Id, a name and optionally a url to a photo.
- Create a Controller of SuperHero
- The controller should contains 3 endpoints
- return a list of super heroes on /superhero
- return a super hero by id on /superhero/{id}
- receive a POST operation on /superhero
- Write tests of your SuperHero Controller using mockMVC
-
To verify the correct behavior of your code you can execute:
./gradlew ktlint test
Copyright 2019 Karumi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.