hackmdio / hackmdio/codimd

New note with noteId not working

Open
#1,550 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,

when I try to create a new note using the /new/noteId API endpoint, either using codimd/cli or using curl by hand, i always get 404. Looking at routes.js, I notice that unlike for /history/, there is not a /new/:noteId route entry. Would seem to me that would be necessary, but that would imply that this has never worked for anyone, which seems unlikely, so I'm probably barking up the wrong tree.

I do have freeurls enabled so I can create named notes using http://server/newnote in the browser. But I need to script a bunch of uploads as part of a migration, preferably using something like for f in *.md; do codimd import $f $(basename f .md); done.

Should this be working?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.