Summaries of artifacts, templates, practices, and techniques for agile architecting (DPR-mm) and service design (SDPR-nn).
DPR Git Pages Home — Activities Index
also known as: Wireframing
The need for a new service API may arise from different occasions, including Frontend Integration. For example, you are building a new single page Web app or adding new features to a mobile app. If the service client does not exist yet, how do you know what responsibilities your service should have, and what message structure is best suited for the new client?
As a designer and/or developer of user interfaces, user experience specialist, I want to share emerging user interface designs with my stakeholders (for instance, end users and product managers but also backend API providers) to solicit their feedback and involve them in the design closely.
The goal of User Interface Mocking or Wireframing in the context of service and API design is to get a better understanding of the structure, amount, and kind of data a client requires so that the remote interface can be designed accordingly. For example, should a service operation use Pagination to break response messages into chunks, and what kind of Reference Management is best suited?
When not to use. Service APIs serve different purposes. Some APIs are tailored to a specific frontend (applying the Backends-for-Frontend pattern), while others are built for yet unknown clients (for instance, when your product offering is the API itself). If you are not planning on also creating a client for the service, then creating a mockup of its interface might not be the best approach, and you might be better served by Stepwise Service Design.
The fidelity of user interfaces mockups varies between hand-drawn sketches to pixel perfect, clickable prototypes. A middle way of a rough gray-scale layout (to make clear that this is just a mockup and should not be taken as a representation of the exact development outcome) that shows the user interface elements and their approximate positions offers a good cost-benefit ratio.
According to Balsamiq, creating a wireframe comprises the following five steps:
The resulting wireframes are not only a potential alternative to Stepwise Service Design from requirements gathering to decomposition, but can also support such activity. For instance, the first mockup can be used to populate the Candidate Endpoint List. A regular alignment of wireframes and the API design, expressed in the Refined Endpoint List and the API Description, can reduce the risk that the API must be reworked for the development of the frontend during API evolution.
The following wireframe shows a rather simple and basic screen for user management. While simple, it still contains valuable information for our service design:
Creating some sort of mockup (whether that is a paper prototype or fully interactive design) is part of most teams’ practices anyway; the value of such early validation is commonly agreed upon.
However, it is usually done to improve communication between designers, developers, and customers/end-users and not for service API design as outlined above. Hence, the extra effort is rather low.
Similar techniques have been around for a long time, arguably since the very beginning of software design.
Mockups should be easy to spot if the above advice to keep it rough is followed; those created with tools might be hard to distinguish from actual, fully implemented user interfaces and raise unjustified “done” impressions and expectations.
Typically user experience specialist, designer, developer; anyone can do it!
Input for your design will come from User Stories and Use Cases. Because the mockup shows input fields and dynamic content, it can be used as input and/or validation for the Domain Model and Candidate Endpoint List.
User interface mockups can be done with pen and paper and of course with any general purpose graphics software. Specialized tools also exist, here is a non-exhaustive list:
See this course on user interface design intro as a starting point.
title: "Design Practice Repository (DPR): Practice/Technique User Interface Mocking"
author: Mirko Stocker (STX), Olaf Zimmermann (ZIO)
date: "04, 16, 2021"
copyright: Olaf Zimmermann, 2020-2021 (unless noted otherwise). All rights reserved.
license: Creative Commons Attribution 4.0 International License