forked from torrust/torrust-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: change default API port to 3001
To avoid conflict with the frontend default port for nuxt.
- Loading branch information
1 parent
31d63e3
commit ba8b2c2
Showing
21 changed files
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --request POST \ | ||
//! --data '{"username":"indexadmin","email":"[email protected]","password":"BenoitMandelbrot1924","confirm_password":"BenoitMandelbrot1924"}' \ | ||
//! http://127.0.0.1:3000/v1/user/register | ||
//! http://127.0.0.1:3001/v1/user/register | ||
//! ``` | ||
//! | ||
//! **NOTICE**: The first user is automatically an administrator. Currently, | ||
|
@@ -34,7 +34,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --request POST \ | ||
//! --data '{"login":"indexadmin","password":"BenoitMandelbrot1924"}' \ | ||
//! http://127.0.0.1:3000/v1/user/login | ||
//! http://127.0.0.1:3001/v1/user/login | ||
//! ``` | ||
//! | ||
//! **Response** | ||
|
@@ -68,7 +68,7 @@ | |
//! --header "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7InVzZXJfaWQiOjEsInVzZXJuYW1lIjoiaW5kZXhhZG1pbiIsImFkbWluaXN0cmF0b3IiOnRydWV9LCJleHAiOjE2ODYyMTU3ODh9.4k8ty27DiWwOk4WVcYEhIrAndhpXMRWnLZ3i_HlJnvI" \ | ||
//! --request POST \ | ||
//! --data '{"name":"new category","icon":null}' \ | ||
//! http://127.0.0.1:3000/v1/category | ||
//! http://127.0.0.1:3001/v1/category | ||
//! ``` | ||
//! | ||
//! **Response** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --header "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7InVzZXJfaWQiOjEsInVzZXJuYW1lIjoiaW5kZXhhZG1pbiIsImFkbWluaXN0cmF0b3IiOnRydWV9LCJleHAiOjE2ODYyMTU3ODh9.4k8ty27DiWwOk4WVcYEhIrAndhpXMRWnLZ3i_HlJnvI" \ | ||
//! --request GET \ | ||
//! "http://127.0.0.1:3000/v1/settings" | ||
//! "http://127.0.0.1:3001/v1/settings" | ||
//! ``` | ||
//! | ||
//! **Example response** `200` | ||
|
@@ -41,7 +41,7 @@ | |
//! "token_valid_seconds": 7257600 | ||
//! }, | ||
//! "net": { | ||
//! "port": 3000, | ||
//! "port": 3001, | ||
//! "base_url": null | ||
//! }, | ||
//! "auth": { | ||
|
@@ -101,8 +101,8 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --header "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7InVzZXJfaWQiOjEsInVzZXJuYW1lIjoiaW5kZXhhZG1pbiIsImFkbWluaXN0cmF0b3IiOnRydWV9LCJleHAiOjE2ODYyMTU3ODh9.4k8ty27DiWwOk4WVcYEhIrAndhpXMRWnLZ3i_HlJnvI" \ | ||
//! --request POST \ | ||
//! --data '{"website":{"name":"Torrust"},"tracker":{"url":"udp://localhost:6969","mode":"Public","api_url":"http://localhost:1212","token":"MyAccessToken","token_valid_seconds":7257600},"net":{"port":3000,"base_url":null},"auth":{"email_on_signup":"Optional","min_password_length":6,"max_password_length":64,"secret_key":"MaxVerstappenWC2021"},"database":{"connect_url":"sqlite://./storage/database/data.db?mode=rwc"},"mail":{"email_verification_enabled":false,"from":"[email protected]","reply_to":"[email protected]","username":"","password":"","server":"","port":25},"image_cache":{"max_request_timeout_ms":1000,"capacity":128000000,"entry_size_limit":4000000,"user_quota_period_seconds":3600,"user_quota_bytes":64000000},"api":{"default_torrent_page_size":10,"max_torrent_page_size":30},"tracker_statistics_importer":{"torrent_info_update_interval":3600}}' \ | ||
//! "http://127.0.0.1:3000/v1/settings" | ||
//! --data '{"website":{"name":"Torrust"},"tracker":{"url":"udp://localhost:6969","mode":"Public","api_url":"http://localhost:1212","token":"MyAccessToken","token_valid_seconds":7257600},"net":{"port":3001,"base_url":null},"auth":{"email_on_signup":"Optional","min_password_length":6,"max_password_length":64,"secret_key":"MaxVerstappenWC2021"},"database":{"connect_url":"sqlite://./storage/database/data.db?mode=rwc"},"mail":{"email_verification_enabled":false,"from":"[email protected]","reply_to":"[email protected]","username":"","password":"","server":"","port":25},"image_cache":{"max_request_timeout_ms":1000,"capacity":128000000,"entry_size_limit":4000000,"user_quota_period_seconds":3600,"user_quota_bytes":64000000},"api":{"default_torrent_page_size":10,"max_torrent_page_size":30},"tracker_statistics_importer":{"torrent_info_update_interval":3600}}' \ | ||
//! "http://127.0.0.1:3001/v1/settings" | ||
//! ``` | ||
//! | ||
//! The response contains the settings that were updated. | ||
|
@@ -124,7 +124,7 @@ | |
//! curl \ | ||
//! --header "Content-Type: application/json" \ | ||
//! --request GET \ | ||
//! "http://127.0.0.1:3000/v1/settings/name" | ||
//! "http://127.0.0.1:3001/v1/settings/name" | ||
//! ``` | ||
//! | ||
//! **Example response** `200` | ||
|
@@ -147,7 +147,7 @@ | |
//! curl \ | ||
//! --header "Content-Type: application/json" \ | ||
//! --request GET \ | ||
//! "http://127.0.0.1:3000/v1/settings/public" | ||
//! "http://127.0.0.1:3001/v1/settings/public" | ||
//! ``` | ||
//! | ||
//! **Example response** `200` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --request POST \ | ||
//! --data '{"username":"indexadmin","email":"[email protected]","password":"BenoitMandelbrot1924","confirm_password":"BenoitMandelbrot1924"}' \ | ||
//! http://127.0.0.1:3000/v1/user/register | ||
//! http://127.0.0.1:3001/v1/user/register | ||
//! ``` | ||
//! | ||
//! For more information about the registration process, refer to the [`auth`](crate::web::api::v1::auth) | ||
|
@@ -107,7 +107,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --request POST \ | ||
//! --data '{"login":"indexadmin","password":"BenoitMandelbrot1924"}' \ | ||
//! http://127.0.0.1:3000/v1/user/login | ||
//! http://127.0.0.1:3001/v1/user/login | ||
//! ``` | ||
//! | ||
//! For more information about the login process, refer to the [`auth`](crate::web::api::v1::auth) | ||
|
@@ -135,7 +135,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --request POST \ | ||
//! --data '{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7InVzZXJfaWQiOjEsInVzZXJuYW1lIjoiaW5kZXhhZG1pbiIsImFkbWluaXN0cmF0b3IiOnRydWV9LCJleHAiOjE2ODYyMTU3ODh9.4k8ty27DiWwOk4WVcYEhIrAndhpXMRWnLZ3i_HlJnvI"}' \ | ||
//! http://127.0.0.1:3000/v1/user/token/verify | ||
//! http://127.0.0.1:3001/v1/user/token/verify | ||
//! ``` | ||
//! | ||
//! **Example response** `200` | ||
|
@@ -181,7 +181,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --request POST \ | ||
//! --data '{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7InVzZXJfaWQiOjEsInVzZXJuYW1lIjoiaW5kZXhhZG1pbiIsImFkbWluaXN0cmF0b3IiOnRydWV9LCJleHAiOjE2ODYyMTU3ODh9.4k8ty27DiWwOk4WVcYEhIrAndhpXMRWnLZ3i_HlJnvI"}' \ | ||
//! http://127.0.0.1:3000/v1/user/token/renew | ||
//! http://127.0.0.1:3001/v1/user/token/renew | ||
//! ``` | ||
//! | ||
//! **Example response** `200` | ||
|
@@ -227,7 +227,7 @@ | |
//! --header "Content-Type: application/json" \ | ||
//! --header "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7InVzZXJfaWQiOjEsInVzZXJuYW1lIjoiaW5kZXhhZG1pbiIsImFkbWluaXN0cmF0b3IiOnRydWV9LCJleHAiOjE2ODYyMTU3ODh9.4k8ty27DiWwOk4WVcYEhIrAndhpXMRWnLZ3i_HlJnvI" \ | ||
//! --request DELETE \ | ||
//! http://127.0.0.1:3000/v1/user/ban/indexadmin | ||
//! http://127.0.0.1:3001/v1/user/ban/indexadmin | ||
//! ``` | ||
//! | ||
//! **Example response** `200` | ||
|
Oops, something went wrong.