Faisal Misle
6c33e0d986
documentation clarification ( #1717 )
2023-05-03 19:56:22 +02:00
Son Nguyen Kim
6276ad4419
Stats endpoint ( #1716 )
...
* update some dependencies: newrelic, gevent
that isn't compatible with python 3.11 on mac
* update package-lock using npm 9.6.4 and node 20.0
* Add GET /api/stats
* update pytest
---------
Co-authored-by: Son Nguyen Kim <son@Sons-MacBook-Air-2.local>
2023-05-03 10:15:47 +02:00
Adrià Casajús
81eb56e213
Tranfer aliases to a new mailbox when deleting mailboxes ( #1534 )
...
* Set up npm clean install instead of npm install in order to keep the version of npm packages 🎨
* Add option to transfer the alias to a new mailbox when a mailbox is deleted
* Moved alias transfer to job
* Lint
* Update forms
* Revert dockerfile change
Co-authored-by: ewen <ewen.coppens@a1.digital>
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2023-01-17 11:55:34 +01:00
Adrian Schnell
e6cdabd46e
Update docu for /api/alias/random/new ( #1515 )
...
the param `mode` has to be passed in the query
2023-01-12 15:55:07 +01:00
Thanh-Nhon NGUYEN
7476bdde4b
Fix typo in hyperlink to GET /api/user/cookie_token ( #1227 )
2022-08-12 11:58:31 +02:00
Adrià Casajús
3a75686898
Generate a web session from an api key ( #1224 )
...
* Create a token to exchange for a cookie
* Added Route to exchange token for cookie
* add missing migration
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-08-10 18:48:32 +02:00
Adrià Casajús
06c1c7f2f7
Restrict the number of free alias for new free users ( #1155 )
...
* Restrict the number of free alias for new free users
* Fix test
* Make flag reverse
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-07-20 11:09:22 +02:00
Adrià Casajús
046748c443
Update pre-commit ( #1138 )
...
* Update pre-commit
* Upgrade djlint, remove flake8 and add pylint
* Reformat with new djlint version
* Run pre-commit on CI
* Use only python3.10 on CI
* Reformat files with pre-commit
* Run pre-commit against all files
* Reformat
* Added global excludes
* Added pre-commit to the contributing file
* Set python 3.9 as default
* Set language version to python3
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
Co-authored-by: Carlos Quintana <carlos.quintana@proton.ch>
2022-07-04 16:01:04 +02:00
Adrià Casajús
aabcc8e72a
Feature: Add delete account route for the api ( #1132 )
...
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-07-02 16:45:58 +02:00
Adrià Casajús
aac493ad2f
Update docs and error message for sudo route ( #1117 )
...
* Update docs and error message for sudo route
* Fix
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-06-28 14:40:06 +02:00
Adrià Casajús
de31e6d072
Allow to set sudo mode for api requests ( #1108 )
...
* Allow to set sudo mode for api requests
* Rebase migration on top of master
* PR comments
* Added missing migration
* Removed unused import
* Apply suggestions from code review
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-06-23 14:26:36 +02:00
Thanh-Nhon NGUYEN
cbd44c01f5
Add hyperlinks to endpoints ( #1045 )
2022-06-04 19:25:21 +02:00
Adrià Casajús
6e948408c6
Updated api docs
2022-05-12 18:50:27 +02:00
Son
a2c477a816
support "enabled" param in /api/v2/aliases
2022-04-28 17:24:35 +02:00
Son
58b332b7bc
add new parameter disabled in /GET /api/v2/aliases
2022-04-25 09:22:29 +02:00
Son
debed67c68
return whether a domain is custom or primary in GET /api/v5/alias/options
2022-04-14 17:28:40 +02:00
Son
4d1c4cfdff
support pinned parameter in /api/v2/aliases
2022-02-03 11:16:49 +01:00
Son
5b7949f346
return title in /api/notifications
2022-01-24 15:20:59 +01:00
Son
0806f9243e
return custom domain json in patch
2022-01-16 17:26:11 +01:00
Son
4d8c89105f
GET /api/phone/reservations/:reservation_id
2022-01-04 16:22:41 +01:00
Son
e752e466e1
reformat api.md
2021-12-28 15:25:06 +01:00
Son
a270c72d60
add random_alias_suffix to settings api
2021-12-28 15:24:58 +01:00
Son
31e39314d5
return "block_forward" for /api/aliases/{alias.id}/contacts
2021-11-02 15:55:16 +01:00
Son
bc4805b1fa
Add POST /api/contacts/:contact_id/toggle
2021-10-28 10:14:20 +02:00
Son NK
2d968a01f8
fix doc
2021-03-17 20:31:05 +01:00
Son NK
c87fe55898
POST /api/aliases/:alias_id/contacts: return 200 and existed=true
if contact is already added.
2021-03-17 20:29:34 +01:00
Son
cf6442cec2
Add PATCH /api/custom_domains/:custom_domain_id
2021-03-10 22:56:12 +01:00
Son
eb22a6302e
rename creation -> deletion for GET /api/custom_domains/:custom_domain_id/trash
2021-03-10 22:39:33 +01:00
Son
6c2daf1bb6
add mailboxes to GET /api/custom_domains
2021-03-10 22:37:26 +01:00
Son Nguyen Kim
095e2ae0de
Merge pull request #377 from TheLastProject/feature/api_export
...
Add export endpoints
2021-03-08 12:18:28 +01:00
Sylvia van Os
3932ed2eb8
Add export endpoints
2021-03-06 21:56:42 +01:00
Son NK
39c92110cb
add more fields into /api/custom_domains
2021-03-06 20:43:50 +01:00
Son NK
145fc9c67c
Add reverse_alias_address to GET /api/aliases/:alias_id/activities
2020-11-17 09:27:30 +01:00
Son NK
aada12f17e
return reverse_alias_address in POST /api/aliases/:alias_id/contacts and GET /api/aliases/:alias_id/contacts
2020-11-16 19:39:00 +01:00
Son NK
71c1b7cc45
add to doc
2020-11-15 19:43:46 +01:00
Son NK
f0f81930bc
Return "sender_format" in GET /api/setting
2020-11-15 19:35:07 +01:00
Son NK
aee917a3ef
Add GET /api/custom_domains/:custom_domain_id/trash
2020-11-15 19:24:54 +01:00
Son NK
de495b9afe
return nb_alias in GET /api/custom_domains
2020-11-15 19:13:00 +01:00
Son NK
9d24b1b88a
GET /api/custom_domains
2020-11-15 19:09:25 +01:00
Son NK
f6568aca6a
Return pinned in GET /api/aliases/:alias_id, GET /api/v2/aliases
2020-11-15 19:01:11 +01:00
Son NK
ae05c164c9
Support pinned in PATCH /api/aliases/:alias_id
2020-11-15 18:46:27 +01:00
Son NK
9cfb6d412a
Add /api/v5/alias/options
2020-11-14 16:45:22 +01:00
Son NK
f452c79aec
Add /v2/setting/domains
2020-11-14 16:37:36 +01:00
Son NK
ae64bd26b9
add TOC for api.md
2020-11-14 16:32:19 +01:00
Son NK
ea6e6f23d2
Move api and oauth to dedicated page
2020-11-14 16:00:39 +01:00
Son NK
482887a0cf
put all docs into README
2019-12-19 22:19:16 +02:00
Son NK
565d406227
remove new_random_alias related test
2019-12-15 18:55:18 +02:00
Son NK
7f96538741
re-organize docs
2019-12-15 18:55:17 +02:00