File:Strongly typed example app.svg

Summary

Description
English: Passing a strongly typed identifier throughout the layers of an example application
Date
Source Own work
Author Frap

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Strongly%20typed%20example%20app.svgCategory:Self-published work

Source code

PlantUML source code.

@startuml
package Application <<Node>> {

  class Controllers.PetController {
    +get(id: PetId)
    +put(pet: Pet)
    +post(pet: Pet)
    +delete(id: PetId)
  }

  class Managers.PetManager {
    +get(id: PetId)
    +update(pet: Pet)
    +create(pet: Pet)
    +delete(id: PetId)
  }

  class Repositories.PetRepository {
    +get(id: PetId)
    +get_all()
    +insert(pet: Pet)
    +update(pet: Pet)
    +delete(id: PetId)
  }

  PetController::get -> PetManager::get
  PetManager::get -> PetRepository::get
}

package Database <<Database>> {
  entity Pet {
    +PetId: UUID
    +Name: String
  }
}

PetRepository::get -> Database::Pet.PetId
@enduml
Category:UML
Category:CC-Zero Category:Pages with syntax highlighting errors Category:Self-published work Category:UML