You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 )
The text was updated successfully, but these errors were encountered: