Skip to content

Commit

Permalink
add a doc for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Davis <[email protected]>
  • Loading branch information
duglin committed Jan 16, 2025
1 parent d6d4472 commit 1b63a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file added cmds/server/.loader.go.swp
Binary file not shown.
3 changes: 3 additions & 0 deletions cmds/server/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ func LoadDirsSample(reg *registry.Registry) *registry.Registry {
ErrFatalf(r.SetSaveDefault("vext", "a ver string"))
ErrFatalf(reg.SetSave("resptr", "/dirs/d1/files/f1/versions/v1"))

ErrFatalf(r.SetSave("#resource", `{"hello":"world"}`))
ErrFatalf(r.SetSave("contenttype", `application/json`))

_, err = g.AddResource("datas", "d1", "v1")

_, err = g.AddResourceWithObject("files", "fx", "",
Expand Down

0 comments on commit 1b63a86

Please sign in to comment.