summaryrefslogtreecommitdiffstats
path: root/notes/ideas/more_api_patterns.txt
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-04 17:41:27 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-04 17:41:27 -0800
commit084e476957ce80b456dcf0575de4efc7331d34f9 (patch)
tree5377ef32c140ef6a0b73d67296eeacf17edcabc9 /notes/ideas/more_api_patterns.txt
parentd7b0a156d2a3a21e2bf5afc3e4b97e7cf1044248 (diff)
downloadfatcat-084e476957ce80b456dcf0575de4efc7331d34f9.tar.gz
fatcat-084e476957ce80b456dcf0575de4efc7331d34f9.zip
clean up notes a tiny bit
Diffstat (limited to 'notes/ideas/more_api_patterns.txt')
-rw-r--r--notes/ideas/more_api_patterns.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/notes/ideas/more_api_patterns.txt b/notes/ideas/more_api_patterns.txt
new file mode 100644
index 00000000..ca61ac81
--- /dev/null
+++ b/notes/ideas/more_api_patterns.txt
@@ -0,0 +1,15 @@
+
+If returning a long list (eg, all releases for a container):
+
+ "releases": {
+ "data": [
+ <release>,
+ <release>,
+ ...
+ ],
+ "has_mode": true,
+ "total_count": 100,
+ "url": "/v0/container/asdf/releases"
+ }
+
+This pattern from the Stripe API.