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
{{ message }}
Repository navigation
[docs] make it easier to understand how to use the self hosted environment API #10
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.
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.
On Sun, Sep 8, 2019, 23:43 Eldad A. Fux ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10?email_source=notifications&email_token=AIDPQKMAJ2ULZO7A7AOZWLTQIVPWRA5CNFSM4IUUYI7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FY6YA#issuecomment-529239904>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIDPQKIM5DB6JYMJPHBUEG3QIVPWRANCNFSM4IUUYI7A>
.
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.
Activity
eldadfux commentedon Sep 8, 2019
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.
nati-levi commentedon Sep 8, 2019
eldadfux commentedon Sep 9, 2019
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.
eldadfux commentedon Sep 15, 2019
Added this just near the project ID to make life a bit easier.
Committed to master branch, will be released in next version.
20234f6
Merge pull request #10 from Mou-Ikkai/dependabot/composer/0.7.x/geoip…
Merge pull request appwrite#10 from utopia-php/fix-return-val
Merge pull request appwrite#10 from utopia-php/feat-remove-dependencies
Merge pull request appwrite#10 from JubayerJoy/main
Merge pull request appwrite#10 from utopia-php/feat-next-standalone
Merge pull request appwrite#10 from mohith2883/remove_authors
Merge pull request appwrite#10 from aniketh-varma/doc-2102-add-contri…
Merge pull request appwrite#10 from utopia-php/feat/glob-validator
Merge pull request appwrite#10 from utopia-php/feat-filtered-options
Merge pull request appwrite#10 from mohith2883/rem-authors
Merge pull request appwrite#10 from utopia-php/feat/clickhouse-schema…
Merge pull request appwrite#10 from utopia-php/fix-parse-error-creden…
Merge pull request appwrite#10 from ashish4arora/master
Merge pull request appwrite#10 from utopia-php/feat-param-aliases
Merge pull request appwrite#10 from utopia-php/codex/fastly-domain-re…
Merge pull request appwrite#10 from TorstenDittmann/patch-1
Merge pull request appwrite#10 from utopia-php/codex/usage-db6-constr…
Merge pull request appwrite#10 from TorstenDittmann/update-database-dep
Merge pull request appwrite#10 from divshacker/main
Merge pull request appwrite#10 from toukirkhan/add-php-config-linter