Skip to content

Commit

Permalink
docs: add note about json-ld filepath (backport #1983) (#1984)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
  • Loading branch information
mergify[bot] and ryanchristo authored Jul 6, 2023
1 parent ecbdf62 commit 1b5f5d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorials/user/credit-class-project-batch-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ Once we have the supporting data for a credit class, project, and batch, we can
curl -X GET -d '<json-ld>' -H "Content-Type: application/json" https://api.registry.regen.network/iri-gen
```

In the above example, you can also use a filepath instead of the raw JSON-LD. To read data from a file directly, you can add the `@` symbol followed by the filepath, e.g. `@/path/to/file.jsonld`.

We now have the IRIs for the `metadata` field of each credit class, project, and batch.

## Data Resolvers
Expand Down

0 comments on commit 1b5f5d6

Please sign in to comment.