Creating our controllers

This service operates behind the scenes with user-provided input. To logically separate the two areas, we will create two controllers:

  • OrderController: Manages everything related to real humans.
  • ProcessingController: Manages everything behind the scenes, no human touch needed

Let's start with OrderController.

Get Hands-On Swift 5 Microservices Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.