id
type
5
status
21
review version
0
cleanup version
0
pending deletion
0
created at
2025-05-04 10:15:57
updated at
2025-12-29 23:11:24
url
https://apisyouwonthate.com/blog/understanding-resources-and-collections-in-restful-apis/
url length
89
url crc
37801
url crc32
2266862505
location type
1
canonical status
10
canonical page id
domain id
domain tld
0
domain parts
0
originating warc id
-
originating url
https://apisyouwonthate.com/sitemap-posts.xml
source type
1
page id
title
API Design Basics: Resources & Collections
excerpt
content
HTTP APIs representing data generally split that down into two concepts: resources and collections. Let's take a look at these two concepts, as see how they’re used in real-world APIs.What is a Resource?In the context of REST/HTTP APIs, a resource represents a specific piece of data or object that can be accessed via a unique URI (Uniform Resource Identifier). This could be anything: a user, a blog post, a product, or an order.Imagine you have an API which handles invoices and payments. Each invoice would be a resource, and each resource would have its own URI:GET /invoices/645E79D9E14 { "id": "645E79D9E14", "invoiceNumber": "INV-2024-001", "customer": "Acme Corporation", "amountDue": 500.00, "dateDue": "2024-08-15", "dateIssued": "2024-08-01", "items": [ { "description": "Consulting Services", "quantity": 10, "unitPrice": 50.00, "total": 500.00 } ], "li...
author
updated
1767429491
block type
0
extracted fields
233
extracted bits
featured image
title
full content
content was extracted heuristically
OpenGraph suggests this is an article
detected location
0
detected language
1 (English)
category id
Other [en] (231)
index version
2025123101
paywall score
51
spam phrases
0
text nonlatin
0
text cyrillic
0
text characters
9032
text words
1861
text unique words
615
text lines
1
text sentences
25
text paragraphs
1
text words per sentence
74
text matched phrases
0
text matched dictionaries
0
image author