Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRUD ENTRY > Update doesn't work #8

Open
Knight-001 opened this issue Jul 16, 2020 · 0 comments
Open

CRUD ENTRY > Update doesn't work #8

Knight-001 opened this issue Jul 16, 2020 · 0 comments

Comments

@Knight-001
Copy link

Hi,
i'm trying to use the update function for an entry but i get a 404 error back.

The pack create, listing and clean works, the crud insert works and the crud delete works aswell.

I'm trying to update an entry and i'm following this example found in the readme:
curl -X PUT 'https://datoji.dev/packs/{PACK_ID}/entries/{ENTRY_ID}'
-H 'content-type: application/json'
-H 'Authorization: Token {KEY}'
-d '{ "entry": { "repo": "davidesantangelo/datoji", "private": true, "stargazers_count": 10 } }'

Before coding it i tried using it with postman, and i set the method to PUT, the url to "https://datoji.dev/packs/{PACK_ID}/entries/{ENTRY_ID}" with no {} between the variables, the KEY and the body to { "entry": { "repo": "davidesantangelo/datoji", "private": true, "stargazers_count": 10 } } just like the example, but i get back a full html 404 error page.

I could delete the entry and insert another one but since there's a documented update function i wanted to use it to limit the requests.

OT: in the readme file, under CRUD ENTRY > Create, the url is wrong, it's "https://datoji.dev/{PACK_ID}/entries" but should be "https://datoji.dev/packs/{PACK_ID}/entries" ( missing packs )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant