Skip to content

Creating data on a path with a period . doesn't explode properly #61

Description

@remy
curl -i -X POST https://jsonbin.org/remy/blog.v2 \
     -H "authorization: token $TOKEN" -d '{ url: "https://remysharp.com" }' \
     -H 'content-type: application/json'
HTTP/2 201

But this makes:

{
  "blog.v2": {}
}

When it should make:

{
	"blog": {
		"v2": {
			"url": ""
		}
	}
}

Also prevents delete etc because the path is hosed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions