Skip to content

Open APIs #11

Open
Open

Description

@jackycute

Maybe can open some APIs to let third-party application to use

Activity

  1. janniklorenz commented on Jul 13, 2015

    @janniklorenz
    Contributor

    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:
    /api/get/noteName
    /api/write/noteName
    /editor/noteName

  2. jackycute commented on Jul 13, 2015

    @jackycute
    MemberAuthor

    Thank you, that's a good proposal!
    First, I refer to the API which now open by Hackpad
    https://hackpad.com/ep/pad/static/k9bpcEeOo2Q

    For now, the creation of the note is /new, which I think is simple enough.
    But currently the note id policy is the UUID encoded by base64.
    So the only note name I can give to you is the "header1", which is the title of the note.
    And maybe I will take /api be the prefix of the APIs.

    Thanks again!

  3. janniklorenz commented on Jul 13, 2015

    @janniklorenz
    Contributor

    Thanks for the quick response, I will take a look at it later.

  4. self-assigned this
    on Mar 28, 2016
  5. wonderchang commented on Jul 3, 2016

    @wonderchang
    Contributor

    +1

  6. Jyny commented on Jul 4, 2016

    @Jyny

    +1

  7. ToniIltanen commented on Nov 22, 2016

    @ToniIltanen

    Any progress on creating an API to control the creation, updating and delete of the notes?

  8. jackycute commented on Nov 22, 2016

    @jackycute
    MemberAuthor

    Not for now, maybe right after version 0.5.0

  9. jackycute commented on Feb 3, 2017

    @jackycute
    MemberAuthor

    We'll need to build a OAuth process to allow programmatic usage.
    Or an easy way is give every user a pair of key and secret like Hackpad did so.

  10. added this to the milestone on Feb 27, 2017
  11. wonderchang commented on Mar 25, 2017

    @wonderchang
    Contributor

    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)

  12. rufuspollock commented on Apr 18, 2017

    @rufuspollock

    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)

  13. tjcarroll11 commented on May 24, 2017

    @tjcarroll11

    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.

  14. RichardLitt commented on May 24, 2017

    @RichardLitt

    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

  15. rufuspollock commented on Jul 16, 2017

    @rufuspollock

    @jackycute any thoughts or updates here :-) ?

  16. iakat commented on Feb 12, 2018

    @iakat

    Any update re: an API to write to notes?

  17. ccoenen commented on Feb 13, 2018

    @ccoenen
    Contributor

    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.

  18. removed this from the milestone on Mar 23, 2019
  19. patcon commented on Mar 10, 2020

    @patcon

    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)

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

Metadata

Metadata

Assignees

Labels

featureWants to add a new feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions