This document provides example requests for each endpoint defined in the FEZCore API.
Assume the base URL for the API is https://{BASE_URL}.
- Signup
- Login For Access Token
- Get Access Token From Refresh Token
- Confirm Account
- Resend Confirmation
- Send Recovery Password Mail
- Recovery Password
- Get User
- Change Password
- Generate Apikey
- Get Apikey Detail
- Create Project
- Get Project
- Upload File
./start.sh- Method: POST
- Summary: Signup
- Success Response:
201 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/auth/signup" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "your-strong-password",
"name": "Mark"
}'- Method: POST
- Summary: Login For Access Token
- Success Response:
200 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/auth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'username=user@example.com&password=your-strong-password'- Method: GET
- Summary: Get Access Token From Refresh Token
- Success Response:
200 Successful Response
Curl Example:
curl -X GET "https://{BASE_URL}/auth/refresh?refresh_token=your_refresh_token"- Method: POST
- Summary: Confirm Account
- Success Response:
204 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/auth/confirm" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"code": "confirmation_code"
}'- Method: POST
- Summary: Resend Confirmation
- Success Response:
204 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/auth/resend-confirmation?email=user@example.com"- Method: GET
- Summary: Send Recovery Password Mail
- Success Response:
200 Successful Response
Curl Example:
curl -X GET "https://{BASE_URL}/auth/send-reset-password-code?email=user@example.com"- Method: POST
- Summary: Recovery Password
- Success Response:
204 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/auth/reset-password" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"code": "recovery_code",
"password": "new_password"
}'- Method: GET
- Summary: Get User
- Success Response:
200 Successful Response
Curl Example:
curl -X GET "https://{BASE_URL}/user/" \
-H "Authorization: Bearer your_jwt_token"- Method: PUT
- Summary: Change Password
- Success Response:
202 Successful Response
Curl Example:
curl -X PUT "https://{BASE_URL}/user/change-password" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_jwt_token" \
-d '{
"current_password": "old_password",
"new_password": "new_password"
}'- Method: POST
- Summary: Generate Apikey
- Success Response:
200 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/apikey/generate-apikey?name=apikey_name" \
-H "Authorization: Bearer your_jwt_token"- Method: GET
- Summary: Get Apikey Detail
- Success Response:
200 Successful Response
Curl Example:
curl -X GET "https://{BASE_URL}/apikey/?key=your_apikey" \
-H "Authorization: Bearer your_jwt_token"- Method: POST
- Summary: Create Project
- Success Response:
200 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/project/?key=your_apikey" \
-H "Content-Type: application/json" \
-d '{
"name": "project_name"
}'- Method: GET
- Summary: Get Project
- Success Response:
200 Successful Response
Curl Example:
curl -X GET "https://{BASE_URL}/project/project_name?key=your_apikey"- Method: POST
- Summary: Upload File
- Success Response:
200 Successful Response
Curl Example:
curl -X POST "https://{BASE_URL}/file/upload?project_name=project&key=your_apikey" \
-F "file=@path_to_your_file"