Photo by Sebastian Coman Photography on Unsplash

Photo by Steve Halama on Unsplash

Part 2: Consuming Metadata

See Part I: Generating API Metadata to get caught up. This post uses the User.json metadata generated using the steps described in that post.

(Un)structured data

The idea of using API metadata in the client code isn’t revolutionary. AutoRest uses OpenAPI schemas to generate code for a number of languages, and Django…

pytest homepage (docs.pytest.org)

Part I: Generating API Metadata

Background

When developing a web application, a common design pattern is to divide the project into two repositories: 1) the API, or “back end”, which handles database or service interaction…

How to write a single Django template for every CreateView and UpdateView in your project.

A reusable template for all of your CreateViews and UpdateViews

Introduction

One of the things that drew me to Django was how easy Django makes it to interact with items in a database. Once you’ve defined your models, Django’s model forms can handle the heavy lifting of allowing your users to create, update, and delete entries in your project’s database.

John Franey

Keyboarding Bluenoser with an eye for clean code, an ear for fusion, and a stomach for dougnuts.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store