Skip to content

[docs] make it easier to understand how to use the self hosted environment API #10

Closed

Description

@nati-levi

Tried to used the API from postman.

Searched for the base URL in the settings, with no luck. Eventually, i inferred from the code that it is http://localhost/v1/.

Also, no place stated that the key should be sent as header X-Appwrite-Key.

Activity

  1. eldadfux commented on Sep 8, 2019

    @eldadfux
    Member

    It is a good idea to have the UI indicating the API base endpoint. Maybe we can add it to the project settings and to the new platform dialog window.

    The X-Appwrite-Key header is used to pass the secret API key and should only be used when integrating with a server side language. It can be a MAJOR security issue when being used directly in your client code and this is why it's not being mentioned anywhere.

  2. added
    enhancement
    on Sep 8, 2019
  3. nati-levi commented on Sep 8, 2019

    @nati-levi
    Author
  4. eldadfux commented on Sep 9, 2019

    @eldadfux
    Member

    Well, its really depends on what you are trying to achieve with postman.

    If you are just trying out the API the best way is probably by treating it as a backend and just passing an API key.

    If you want to mock real user behaviour, you need to use the entire register-login flow to obtain a user session cookie, and then add it to all other requests.

    This might be easier if in some point we will add Appwrite as an OAuth provider on its own, and then auth process will be more straight forward from 3rd parties like postman.

  5. self-assigned this
    on Sep 9, 2019
  6. eldadfux commented on Sep 15, 2019

    @eldadfux
    Member

    image

    Added this just near the project ID to make life a bit easier.

    Committed to master branch, will be released in next version.
    20234f6

  7. added a commit that references this issue on Oct 1, 2020
  8. added a commit that references this issue on Sep 16, 2026
  9. added a commit that references this issue on Sep 23, 2026
  10. added a commit that references this issue on Sep 24, 2026
  11. added a commit that references this issue on Sep 24, 2026
  12. added a commit that references this issue on Sep 24, 2026
  13. added a commit that references this issue on Sep 25, 2026
  14. added 9 commits that reference this issue on Sep 25, 2026
  15. added a commit that references this issue on Sep 29, 2026
  16. added 2 commits that reference this issue on Sep 29, 2026
  17. added a commit that references this issue on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions