Shakespeare Sonnet and Writer API Documentation (You found the “…”)

(This project is not yet live online) Basic Functionality:
This API will offer all 154 Shakespeare Sonnets
Later on:
Eventually it will also generate Sheakespearean Sonnets using a program I wrote in college for English.

Usage

All responses will have the form

{
    "data": "Mixed type holding the content of the response"
    "message": "Description of what happened"
}

Subsequent definitions will only detail the expected value of the ‘data field’

List all available Sonnets

Definition GET /sonnets Response -200 OK on success

[
    {
        "identifier": "1",
        "name": "Sonnet I",
        "sonnet-type": "Shakespeare",
        "first_four_words": "From fairest creatures we",
        "full-text": "Sonnet Text"
    }
    {
        "identifier": "2",
        "name": "Sonnet II",
        "sonnet-type": "Shakespeare",
        "first_four_words": "When forty winters shall",
        
    }

]

Create a new sonnet

Definition

POST /Sonnets

Arguments

  • -"identifier":string a globally unique identifier for the sonnet
  • "name": string the name of the sonnet
  • "sonnet_type": string type of sonnet or tag of sonnet
  • "first_four_words": string the first four words of the sonnet
  • "full_text": "Sonnet Text" full text

If a sonnet with the given identifier already exists, the existing sonnet will be overwritten.

Response

-201 Created on success

[
    {
        "identifier": "1",
        "name": "Sonnet I",
        "sonnet_type": "Shakespeare",
        "first_four_words": "From fairest creatures we",
        "full_text": "Sonnet Text"
    }
]

##Lookup sonnet details

GET /sonnet/<identifier>

Response

  • 404 Not Found if the sonnet does not exist
  • 200 OK on success
[
    {
        "identifier": "1",
        "name": "Sonnet I",
        "sonnet_type": "Shakespeare",
        "first_four_words": "From fairest creatures we",
        "full_text": "Sonnet Text"
    }
]

Delete a sonnet

**Definition

DELETE /sonnet/<identifier>

Response

  • 404 Not Found if the sonnet does not exist
  • 204 OK success no content

2022

Etsy

less than 1 minute read

A process to create products on Etsy

Brain dump 2

1 minute read

Brain dump 1 (old brain dump from 04-2020 with checkboxes filled as of today 01-2020)

Back to top ↑

2021

Back to top ↑

2020

A mini follow up to my habit tracker

1 minute read

Habit tracking part 2: Reiterating my goals for my habit tracker This is a follow up to the first post I made about this topic. I have been using the habit...

How to Debug

3 minute read

How to Debug: I have been listening to an audiobook The Complete Software Developers Career Guide on my way to work. I highly recommend this book to develop...

Back to top ↑

2019

The Magical Manager

2 minute read

The Magical Manager So, who is this guy? When I began working with Jack Zoellner, I was told by my coworkers that Jack was really a great software develope...

Today I started using a habit tracker

4 minute read

Today I started using a habit tracker I have found myself allowing some bad habits to form which are affecting my effectiveness and productivity. One of my ...

Users API for my twitch game

4 minute read

Users API for my twitch game I’ve been working on this game for a few weekends. Here is the flask API I will be using to create users, update their informat...

Risk of Rain 2 Mods

1 minute read

Now on Steam: Risk of Rain 2 is a multiplayer roguelike 3D sequel to Risk of Rain. Prereqs: Do...

The Basics of Cryptocurrency Arbitrage

3 minute read

Motivation for this post This post is purely for fun and for sharing some ideas I have had about this space. Many have given up on cryptocurrency since th...

ASCII Otter

less than 1 minute read

Enjoy this otter ascii art. Simple and elegant yet repeatable. This hand drawn ascii art does not inspire, but still gives you the image of an otter swimmin...

Back to top ↑