-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Open APIs #11
Comments
At first, I just took a quick look at the project and that's exactly what I had in mind too. A simple, markdown alternative to ether pad. To provide such an API (REST) it maybe would be the best to simplify the creation of a note. Let the server just creates the note if no one with the same name exits (like ether pad). So we could build an URL architecture like: |
Thank you, that's a good proposal! For now, the creation of the note is Thanks again! |
Thanks for the quick response, I will take a look at it later. |
+1 |
1 similar comment
+1 |
Any progress on creating an API to control the creation, updating and delete of the notes? |
Not for now, maybe right after version 0.5.0 |
We'll need to build a OAuth process to allow programmatic usage. |
I prefer to provide a pair of key and secret to achieve it, and each authorized user could generate several key pairs for different application uses. Why this feature would be implement after v0.5.0? Something fundamentals should be done before constructing Open API? (Just curious, not offense) |
Chiming in to say this is a top issue for me e.g. I want to be able to store todos in hackmd, or store a list of documents and get that list. This would also enable people to extend the platform a lot in interesting ways (e.g. push and pull between github files) |
Also chiming in to say I really want to use hackmd, but this is a blocker for me. I need a way to create documents from a separate system and open them to edit in hackmd. Oauth is not necessary for my use case. |
I've built a module that can generate HackMD links. May prove useful, but it's not ideal. https://github.com/RichardLitt/generate-hackmd-links |
@jackycute any thoughts or updates here :-) ? |
Any update re: an API to write to notes? |
There's now the possibility to create a new note with content, see #673 for an example. Editing is not trivial, currently believe that "simply" using the Websocket and adding content via OT is the best option. |
In case anyone else is interested, I created a really ugly code spike for messing around with socketio and both clearing a pad and replacing it with template copy: https://github.com/patcon/hackmd-edits-test fwiw, it currently only works if no one else has an active cursor on the pad (not sure why) |
Maybe can open some APIs to let third-party application to use
The text was updated successfully, but these errors were encountered: