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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.