Skip to content

Commit f712380

Browse files
authored
Merge pull request #7 from Making-Sense-Info/fix/identification
fix: identification with urn or query params
2 parents 5737a02 + 0fe4df6 commit f712380

6 files changed

Lines changed: 881 additions & 556 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ This API provides access to DDI metadata resources.
1414

1515
For detailed API usage, endpoints, and examples, see the [Mock API Endpoints Documentation](docs/MOCK_API_ENDPOINTS.md).
1616

17+
### Resource identifiers
18+
19+
Identifiers follow an **URN-first** rule (see `ddi-rest.yaml`):
20+
21+
- **DDI URN** (`urn:ddi:{agency}:{id}:{version}`): identifies a resource unambiguously; no extra query parameters are required.
22+
- **Plain ID**: meaningful only within a DDI agency; **`agencyID`** and **`version`** query parameters are **required** on the same request (path or list filters).
23+
- There is **no** global lookup by plain ID alone across agencies or versions.
24+
25+
If a plain ID is used without both `agencyID` and `version`, the API responds with **`400 Bad Request`**.
26+
27+
Examples in the [mock endpoints guide](docs/MOCK_API_ENDPOINTS.md) use `agencyID=example.agency` and `version=1.0.0` for plain identifiers.
28+
1729
## OpenAPI Specification
1830

1931
The API specification is available in the `ddi-rest.yaml` file in OpenAPI 3.1.1 format.

0 commit comments

Comments
 (0)