---
title: "return a view of a file or subcollection component of a resource"
method: GET
path: "/id/{dsid}/pdr:f/{filepath}"
tags: ["Resource Identifiers"]
---

# return a view of a file or subcollection component of a resource

`GET /id/{dsid}/pdr:f/{filepath}`

## Request

- Base URL: `/od` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/od/id/{dsid}/pdr:f/{filepath}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/usnistgov/apis/pdr-resource-identifier-resolver-service/docs/id/:dsid/pdr:f/:filepath/get.ts> (a function with typed inputs; its response is checked against the schema)

This returns a JSON list of NERDm Component objects of type DataFile and Subcollection.  This will be an empty list if there are no such components with the idenfied resource.

## Path parameters

- `dsid` string, required
- `filepath` string, required

## Query parameters

- `format` string

## Response `200`

the identifier and version were found and a view was returned.

- string: a description of the resource in NERDm JSON format; the object will be a NERDm `Resourse` type.

## Other responses

- `400`: the format parameter specified an unsupported or unrecognized output format
- `404`: the resource identifier was not found in the repository.
- `406`: no supportable formats associated with the MIME-types given in the `Accept` parameter, _or_ none of those MIME-types were consistent with the format requested via the `format` parameter.

---

[API](https://skmtc.dev/usnistgov/apis/pdr-resource-identifier-resolver-service.md) - [All operations](https://skmtc.dev/usnistgov/apis/pdr-resource-identifier-resolver-service/llms.txt) - [OpenAPI document](https://skmtc.dev/usnistgov/apis/pdr-resource-identifier-resolver-service/revisions/00ec37e796c3?raw)
