raulraja / KataSuperHeroesSpringBoot

This is a spring boot kata for the courses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Karumi logo Kata SuperHeroes with SpringBoot in Kotlin.

  • We are here to practice the usage of [SpringBoot].
  • We are going to use [Kotlin][kotlin].
  • We are going to practice pair programming.

Getting started

This repository contains an SpringBoot application.

Tasks

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

    1. Fork this repository.
    2. Checkout master branch.
    3. Execute the application, see if it compiles and import correctly gradle dependencies.
  • Exercise

    1. Create a SuperHero, that contains an Id, a name and optionally a url to a photo.
    2. Create a Controller of SuperHero
    3. 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
    4. Write tests of your SuperHero Controller using mockMVC
  • To verify the correct behavior of your code you can execute:

./gradlew ktlint test

License

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.

About

This is a spring boot kata for the courses.


Languages

Language:Kotlin 100.0%