noppefoxwolf/notion is a notion.so API library written in swift.

Related tags

Utility swift notion
Overview

notion

noppefoxwolf/notion is a notion.so API library written in swift.

Installation

Xcode

Project > Swift Packages

[email protected]:noppefoxwolf/notion.git

Swift Package Manager

Append following line to Package.swift.

dependencies: [
    .package(url: "https://github.com/noppefoxwolf/notion", from: "0.1.0")
}

Usage

import notion

let session = Session.shared
session.setAuthorization(token: "<<AUTHORIZE TOKEN>>")
session.send(V1.Users.List()).sink { result in
    // DO SOMETHING
}.store(in: &cancellables)

Support features

integration

  • internal integration
  • public integration

user

  • List all users
  • Retrieve a user

search

  • Search

block

  • Retrieve block children
  • Append block children

page

  • Update page properties
  • Create a page
  • Retrieve a page

database

List databases deprecated

  • Query a database
  • Retrieve a database

API Documents

Start building with the Notion API

Author

noppe

You might also like...
Swift-HorizontalPickerView - Customizable horizontal picker view component written in Swift for UIKit/iOS

Horizontal Picker View Customizable horizontal picker view component written in

A utility that reminds your iPhone app's users to review the app written in pure Swift.
A utility that reminds your iPhone app's users to review the app written in pure Swift.

SwiftRater SwiftRater is a class that you can drop into any iPhone app that will help remind your users to review your app on the App Store/in your ap

An extensible monitoring framework written in Swift

XestiMonitors Overview Reference Documentation Requirements Installation CocoaPods Carthage Swift Package Manager Usage Core Location Monitors Core Mo

A simple Pokedex app written in Swift that implements the PokeAPI, using Combine and data driven UI.
A simple Pokedex app written in Swift that implements the PokeAPI, using Combine and data driven UI.

SwiftPokedex SwiftPokedex is a simple Pokedex app written by Viktor Gidlöf in Swift that implements the PokeAPI. For full documentation and implementa

Just another NES emulator written in Swift

SwiftNes This repo contains all the source code for my experimental 100 days of NES challenge. What is this all about? I'm planning to build a fully w

A Powerful , Extensible CSS Parser written in pure Swift.
A Powerful , Extensible CSS Parser written in pure Swift.

A Powerful , Extensible CSS Parser written in pure Swift.

Python VM written in Swift

Violet Violet is one of those Swift - Python interop thingies, except that this time we implement the whole language from scratch. Name comes from V

A (slow) ray tracer written in Swift.

Blitzlichtgewitter Blitzlichtgewitter is a (slow) ray tracer written in Swift. It loosely follows the steps described in The Ray Tracer Challenge by J

Readium Mobile is a toolkit for ebooks, audiobooks and comics written in Swift & Kotlin.

Readium Swift Toolkit Readium Mobile is a toolkit for ebooks, audiobooks and comics written in Swift & Kotlin. This toolkit is a modular project, whic

Comments
  • Fixup V1.Pages.Create parameters

    Fixup V1.Pages.Create parameters

    Abstract

    POST api.notion.com/v1/page を実行する V1.Pages.Create でリクエストを送ったらエラーがかえってきた。内容はRequest Bodyのフォーマットが違うためにnotionからvalidation_errorが返ってきていた。詳細は Request/Response 参考

    Request/Response

    Response

    {
        "code": "validation_error",
        "message": "body failed validation: body.properties.title.id should be an array, instead was
    `\"title\"`.",
        "object": "error",
        "status": 400
    }
    

    Request Bodyの問題の場所

      "properties": {
        "title": {
          "id": "title",
          "type": "title",
          "title": [
            {
              "annotations": {
                "color": "default"
              },
              "plain_text": "Nested Page",
              "href": null,
              "type": "text",
              "text": {
                "content": "Nested Page"
              }
            }
          ]
        }
      }
    
    Raw Request Body (めっちゃでかい)
    {
      "children": [
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "8b2e0fde-8fb5-45d7-9be7-8dcd257ed68f",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "https://github.com/bannzai",
                "href": "https://github.com/bannzai",
                "type": "text",
                "text": {
                  "content": "https://github.com/bannzai",
                  "link": {
                    "url": "https://github.com/bannzai"
                  }
                }
              }
            ]
          },
          "id": "39da4dec-1cc7-4586-910f-bfb6433073d2",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9c396331-4e2b-4355-8e10-88b7636b4869",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9d59701a-eed2-43b0-a862-8ac1f71a0aab",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ニンニク(蒜、大蒜、葫、忍辱",
                "href": null,
                "type": "text",
                "text": {
                  "content": "ニンニク(蒜、大蒜、葫、忍辱"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[4]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4",
                "type": "text",
                "text": {
                  "content": "[4]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "学名",
                "href": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D",
                "type": "text",
                "text": {
                  "content": "学名",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": ":Allium sativum)は",
                "href": null,
                "type": "text",
                "text": {
                  "content": ":Allium sativum)は"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ヒガンバナ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ヒガンバナ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ネギ属",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E",
                "type": "text",
                "text": {
                  "content": "ネギ属",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "の多年草。香りが強く、強壮・",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の多年草。香りが強く、強壮・"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "スタミナ",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A",
                "type": "text",
                "text": {
                  "content": "スタミナ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "増進作用があると信じられているため",
                "href": null,
                "type": "text",
                "text": {
                  "content": "増進作用があると信じられているため"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[5]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5",
                "type": "text",
                "text": {
                  "content": "[5]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "球根",
                "href": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9",
                "type": "text",
                "text": {
                  "content": "球根",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "(鱗茎)を",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(鱗茎)を"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "香辛料",
                "href": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99",
                "type": "text",
                "text": {
                  "content": "香辛料",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "などとして食用にするほか、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "などとして食用にするほか、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "茎",
                "href": "https://ja.wikipedia.org/wiki/%E8%8C%8E",
                "type": "text",
                "text": {
                  "content": "茎",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8C%8E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "も「ニンニクの",
                "href": null,
                "type": "text",
                "text": {
                  "content": "も「ニンニクの"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "芽",
                "href": "https://ja.wikipedia.org/wiki/%E8%8A%BD",
                "type": "text",
                "text": {
                  "content": "芽",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8A%BD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "」(トウ)と呼ばれて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(トウ)と呼ばれて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "野菜",
                "href": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C",
                "type": "text",
                "text": {
                  "content": "野菜",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "として調理される",
                "href": null,
                "type": "text",
                "text": {
                  "content": "として調理される"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[6]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6",
                "type": "text",
                "text": {
                  "content": "[6]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "。かつて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "。かつて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "クロンキスト体系",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB",
                "type": "text",
                "text": {
                  "content": "クロンキスト体系",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "による分類では",
                "href": null,
                "type": "text",
                "text": {
                  "content": "による分類では"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ユリ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ユリ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "に属していた。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "に属していた。"
                }
              }
            ]
          },
          "id": "cef7be2c-f441-4c4b-8fdf-272b2d6b77fa",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.685Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "日本ではニンニクや",
                "href": null,
                "type": "text",
                "text": {
                  "content": "日本ではニンニクや"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ノビル",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB",
                "type": "text",
                "text": {
                  "content": "ノビル",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "漢方薬",
                "href": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "漢方薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "生薬",
                "href": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "生薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "仏教",
                "href": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99",
                "type": "text",
                "text": {
                  "content": "仏教",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "用語「",
                "href": null,
                "type": "text",
                "text": {
                  "content": "用語「"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "忍辱",
                "href": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1",
                "type": "text",
                "text": {
                  "content": "忍辱",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "」(にんにく)とされる。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(にんにく)とされる。"
                }
              }
            ]
          },
          "id": "5df2c36c-5acf-42a8-943e-1efa6c8364fd",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。"
                }
              }
            ]
          },
          "id": "471891b8-b5f8-4bed-9529-a77312562a28",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "一般的に見かけるニンニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "一般的に見かけるニニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "プチニンニク",
                "href": null,
                "type": "text",
                "text": {
                  "content": "プチニンニク"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(",
                "href": null,
                "type": "text",
                "text": {
                  "content": "("
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "en",
                "href": "https://en.wikipedia.org/wiki/Solo_garlic",
                "type": "text",
                "text": {
                  "content": "en",
                  "link": {
                    "url": "https://en.wikipedia.org/wiki/Solo_garlic"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": ")などの品種もある。",
                "href": null,
                "type": "text",
                "text": {
                  "content": ")などの品種もある。"
                }
              }
            ]
          },
          "id": "bae993b3-22b4-4c64-8d4b-c0b8ce1b1832",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ジャンボニンニク",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF",
                "type": "text",
                "text": {
                  "content": "ジャンボニンニク",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "リーキ",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD",
                "type": "text",
                "text": {
                  "content": "リーキ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(ポロネギ)の1",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(ポロネギ)の1"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "変種",
                "href": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE",
                "type": "text",
                "text": {
                  "content": "変種",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "である。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "である。"
                }
              }
            ]
          },
          "id": "20e6fe68-8477-43dd-b000-2db370e87654",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "7000cf52-eee7-478a-80a2-9a443e2d2421",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-23T04:01:00.000Z"
        }
      ],
      "parent": {
        "type": "page_id",
        "page_id": "4e7bf595-2afa-46b3-b9cf-6f0a9f0c810e"
      },
      "properties": {
        "title": {
          "id": "title",
          "type": "title",
          "title": [
            {
              "annotations": {
                "color": "default"
              },
              "plain_text": "Nested Page",
              "href": null,
              "type": "text",
              "text": {
                "content": "Nested Page"
              }
            }
          ]
        }
      }
    }
    

    Notion APIのCreate Pageを見た感じだと properties { id,type } は不要だったので削除。id だけ消した場合でも type が arrayの必要がある。と返ってきたので idtypeV1.Pages.Create の引数から削除する。

    How

    • func に埋め込まれていたParameterをV1.Pages.Create.Parameterとなるように公開
    • Parameter.propertiesに不要なidとtypeが入らないように型を調整
    • ParameterのEncodeの処理で調整が必要だったので下記のことを実行
      • Object PackageのProperty.InternalTypeをpublicにして、API/V1 Packageから参照可能にする
      • Property.InternalTypeを使ってPrameter.propertiesを個別にencode
      • InternalType->PropertyTypeに変更

    Checked

    • [x] V1.Page.Createを使用してページが登録できる
    Raw Request Body (めっちゃ長い)
    {
      "properties": {
        "title": [
          {
            "annotations": {
              "color": "default"
            },
            "plain_text": "Nested Page",
            "href": null,
            "type": "text",
            "text": {
              "content": "Nested Page"
            }
          }
        ]
      },
      "parent": {
        "type": "page_id",
        "page_id": "4e7bf595-2afa-46b3-b9cf-6f0a9f0c810e"
      },
      "children": [
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "8b2e0fde-8fb5-45d7-9be7-8dcd257ed68f",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "https://github.com/bannzai",
                "href": "https://github.com/bannzai",
                "type": "text",
                "text": {
                  "content": "https://github.com/bannzai",
                  "link": {
                    "url": "https://github.com/bannzai"
                  }
                }
              }
            ]
          },
          "id": "39da4dec-1cc7-4586-910f-bfb6433073d2",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9c396331-4e2b-4355-8e10-88b7636b4869",
          "last_edited_time": "2021-06-22T12:47:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T12:47:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "9d59701a-eed2-43b0-a862-8ac1f71a0aab",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:00.000Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ニンニク(蒜、大蒜、葫、忍辱",
                "href": null,
                "type": "text",
                "text": {
                  "content": "ニンニク(蒜、大蒜、葫、忍辱"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[4]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4",
                "type": "text",
                "text": {
                  "content": "[4]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-4"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "学名",
                "href": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D",
                "type": "text",
                "text": {
                  "content": "学名",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%AD%A6%E5%90%8D"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": ":Allium sativum)は",
                "href": null,
                "type": "text",
                "text": {
                  "content": ":Allium sativum)は"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ヒガンバナ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ヒガンバナ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%92%E3%82%AC%E3%83%B3%E3%83%90%E3%83%8A%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ネギ属",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E",
                "type": "text",
                "text": {
                  "content": "ネギ属",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8D%E3%82%AE%E5%B1%9E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "の多年。香りが強く、強壮・",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の多年草。香りが強く、強壮・"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "スタミナ",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A",
                "type": "text",
                "text": {
                  "content": "スタミナ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B9%E3%82%BF%E3%83%9F%E3%83%8A"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "増進作用があると信じられているため",
                "href": null,
                "type": "text",
                "text": {
                  "content": "増進作用があると信じられているため"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[5]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5",
                "type": "text",
                "text": {
                  "content": "[5]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-5"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "球根",
                "href": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9",
                "type": "text",
                "text": {
                  "content": "球根",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%90%83%E6%A0%B9"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "(鱗茎)を",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(鱗茎)を"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "香辛料",
                "href": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99",
                "type": "text",
                "text": {
                  "content": "香辛料",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%A6%99%E8%BE%9B%E6%96%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "などとして食用にするほか、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "などとして食用にするほか、"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "茎",
                "href": "https://ja.wikipedia.org/wiki/%E8%8C%8E",
                "type": "text",
                "text": {
                  "content": "",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8C%8E"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "も「ニンニクの",
                "href": null,
                "type": "text",
                "text": {
                  "content": "も「ニンニクの"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "芽",
                "href": "https://ja.wikipedia.org/wiki/%E8%8A%BD",
                "type": "text",
                "text": {
                  "content": "芽",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E8%8A%BD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "」(トウ)と呼ばれて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(トウ)と呼ばれて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "野菜",
                "href": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C",
                "type": "text",
                "text": {
                  "content": "野菜",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E9%87%8E%E8%8F%9C"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "として調理される",
                "href": null,
                "type": "text",
                "text": {
                  "content": "として調理される"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "[6]",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6",
                "type": "text",
                "text": {
                  "content": "[6]",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF#cite_note-6"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "。かつて",
                "href": null,
                "type": "text",
                "text": {
                  "content": "。かつて"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "クロンキスト体系",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB",
                "type": "text",
                "text": {
                  "content": "クロンキスト体系",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%AF%E3%83%AD%E3%83%B3%E3%82%AD%E3%82%B9%E3%83%88%E4%BD%93%E7%B3%BB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "による分類では",
                "href": null,
                "type": "text",
                "text": {
                  "content": "による分類では"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "ユリ科",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91",
                "type": "text",
                "text": {
                  "content": "ユリ科",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%A6%E3%83%AA%E7%A7%91"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "に属していた。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "に属していた。"
                }
              }
            ]
          },
          "id": "cef7be2c-f441-4c4b-8fdf-272b2d6b77fa",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.685Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "日本ではニンニクや",
                "href": null,
                "type": "text",
                "text": {
                  "content": "日本ではニンニクや"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ノビル",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB",
                "type": "text",
                "text": {
                  "content": "ノビル",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%8E%E3%83%93%E3%83%AB"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(野蒜)など鱗茎を食用とする臭いの強い(ネギ属の)植物を総称して蒜(ひる)と呼び、特にノビルと区別する場合にはオオヒル(大蒜)とも称した。"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "漢方薬",
                "href": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "漢方薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E6%BC%A2%E6%96%B9%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "生薬",
                "href": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC",
                "type": "text",
                "text": {
                  "content": "生薬",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E7%94%9F%E8%96%AC"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "名は大蒜(たいさん)。語源は、困難を耐え忍ぶという意味の"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "仏教",
                "href": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99",
                "type": "text",
                "text": {
                  "content": "仏教",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E4%BB%8F%E6%95%99"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "用語「",
                "href": null,
                "type": "text",
                "text": {
                  "content": "用語「"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "忍辱",
                "href": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1",
                "type": "text",
                "text": {
                  "content": "忍辱",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%BF%8D%E8%BE%B1"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "」(にんにく)とされる。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "」(にんにく)とされる。"
                }
              }
            ]
          },
          "id": "5df2c36c-5acf-42a8-943e-1efa6c8364fd",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "5月頃に白い小さな花を咲かせるが、栽培時には鱗茎を太らせるために花芽は摘み取る。摘み取った茎は柔らかい物であれば野菜として利用される(前述)。"
                }
              }
            ]
          },
          "id": "471891b8-b5f8-4bed-9529-a77312562a28",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "一般的に見かけるニンニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の",
                "href": null,
                "type": "text",
                "text": {
                  "content": "一般的に見かけるニンニクは分球ニンニクがほとんどであるが、一片種と呼ばれる中国の"
                }
              },
              {
                "annotations": {
                  "color": "default",
                  "bold": true
                },
                "plain_text": "プチニンニク",
                "href": null,
                "type": "text",
                "text": {
                  "content": "プチニンニク"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(",
                "href": null,
                "type": "text",
                "text": {
                  "content": "("
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "en",
                "href": "https://en.wikipedia.org/wiki/Solo_garlic",
                "type": "text",
                "text": {
                  "content": "en",
                  "link": {
                    "url": "https://en.wikipedia.org/wiki/Solo_garlic"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": ")などの品種もある。",
                "href": null,
                "type": "text",
                "text": {
                  "content": ")などの品種もある。"
                }
              }
            ]
          },
          "id": "bae993b3-22b4-4c64-8d4b-c0b8ce1b1832",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": [
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "ジャンボニンニク",
                "href": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF",
                "type": "text",
                "text": {
                  "content": "ジャンボニンニク",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%82%B8%E3%83%A3%E3%83%B3%E3%83%9C%E3%83%8B%E3%83%B3%E3%83%8B%E3%82%AF"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、",
                "href": null,
                "type": "text",
                "text": {
                  "content": "あるいは無臭ニンニクと呼ばれるものはニンニクとは別種であり、"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "リーキ",
                "href": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD",
                "type": "text",
                "text": {
                  "content": "リーキ",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E3%83%AA%E3%83%BC%E3%82%AD"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "(ポロネギ)の1",
                "href": null,
                "type": "text",
                "text": {
                  "content": "(ポロネギ)の1"
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "変種",
                "href": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE",
                "type": "text",
                "text": {
                  "content": "変種",
                  "link": {
                    "url": "https://ja.wikipedia.org/wiki/%E5%A4%89%E7%A8%AE"
                  }
                }
              },
              {
                "annotations": {
                  "color": "default"
                },
                "plain_text": "である。",
                "href": null,
                "type": "text",
                "text": {
                  "content": "である。"
                }
              }
            ]
          },
          "id": "20e6fe68-8477-43dd-b000-2db370e87654",
          "last_edited_time": "2021-06-22T23:37:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-22T23:37:31.686Z"
        },
        {
          "object": "block",
          "paragraph": {
            "text": []
          },
          "id": "7000cf52-eee7-478a-80a2-9a443e2d2421",
          "last_edited_time": "2021-06-23T04:01:00.000Z",
          "type": "paragraph",
          "has_children": false,
          "created_time": "2021-06-23T04:01:00.000Z"
        }
      ]
    }
    
    Response
    {
      "object": "page",
      "id": "e7f93f02-620f-4405-896c-911d2f4079ce",
      "created_time": "2021-06-24T01:39:27.405Z",
      "last_edited_time": "2021-06-24T01:39:27.410Z",
      "parent": {
        "type": "page_id",
        "page_id": "4e7bf595-2afa-46b3-b9cf-6f0a9f0c810e"
      },
      "archived": false,
      "properties": {
        "title": {
          "id": "title",
          "type": "title",
          "title": [
            {
              "type": "text",
              "text": {
                "content": "Nested Page",
                "link": null
              },
              "annotations": {
                "bold": false,
                "italic": false,
                "strikethrough": false,
                "underline": false,
                "code": false,
                "color": "default"
              },
              "plain_text": "Nested Page",
              "href": null
            }
          ]
        }
      }
    }
    
    opened by bannzai 1
Releases(0.1.2)
Owner
noppefoxwolf
きつねかわいい!!!
noppefoxwolf
An SSH config parser library with a fancy API

The SshConfig makes it quick and easy to load, parse, and decode/encode the SSH configs. It also helps to resolve the properties by hostname and use them safely in your apps (thanks for Optional and static types in Swift).

Artem Labazin 8 Nov 25, 2022
A parser combinator library written in the Swift programming language.

SwiftParsec SwiftParsec is a Swift port of the Parsec parser combinator library. It allows the creation of sophisticated parsers from a set of simple

David Dufresne 219 Nov 6, 2022
Cross-Platform, Protocol-Oriented Programming base library to complement the Swift Standard Library. (Pure Swift, Supports Linux)

SwiftFoundation Cross-Platform, Protocol-Oriented Programming base library to complement the Swift Standard Library. Goals Provide a cross-platform in

null 620 Oct 11, 2022
Swift Server Implementation - RESTful APIs, AWS Lambda Serverless For Swift Runtime amazonlinux: AWS Lambda + API Gateway

Swift Server Implementation - RESTful APIs, AWS Lambda Serverless For Swift Runtime amazonlinux: AWS Lambda + API Gateway deployed on Graviton arm64 build swift:5.6.2-amazonlinux2-docker image

Furqan 2 Aug 16, 2022
Extensions giving Swift's Codable API type inference super powers 🦸‍♂️🦹‍♀️

Welcome to Codextended — a suite of extensions that aims to make Swift’s Codable API easier to use by giving it type inference-powered capabilities an

John Sundell 1.4k Jan 2, 2023
Swift-friendly API for a set of powerful Objective C runtime functions.

ObjectiveKit ObjectiveKit provides a Swift friendly API for a set of powerful Objective C runtime functions. Usage To use ObjectiveKit: Import Objecti

Roy Marmelstein 850 Oct 25, 2022
This is a app developed in Swift, using Object Oriented Programing, UIKit user interface programmatically, API Request and Kingfisher to load remote images

iOS NOW ⭐ This is a app developed in Swift, using Object Oriented Programing, UIKit user interface programmatically, API Request and Kingfisher to loa

William Tristão de Paula 1 Dec 7, 2021
Project shows how to unit test asynchronous API calls in Swift using Mocking without using any 3rd party software

UnitTestingNetworkCalls-Swift Project shows how to unit test asynchronous API ca

Gary M 0 May 6, 2022
SpriteKit API reproducing UIView's spring animations with SKAction

SpriteKit-Spring SpriteKit-Spring is a set of extensions to perform spring animations with SpriteKit. Installation iOS 7 If you need to support iOS 7,

Alexis Taugeron 242 Dec 17, 2022