summaryrefslogtreecommitdiffstats
path: root/notes/ideas/more_api_patterns.txt
diff options
context:
space:
mode:
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.