Skip to content

jpyNicolas/FEZCoreH

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEZCore API Documentation.

This document provides example requests for each endpoint defined in the FEZCore API.

Base URL

Assume the base URL for the API is https://{BASE_URL}.

Table of Contents

  1. Signup
  2. Login For Access Token
  3. Get Access Token From Refresh Token
  4. Confirm Account
  5. Resend Confirmation
  6. Send Recovery Password Mail
  7. Recovery Password
  8. Get User
  9. Change Password
  10. Generate Apikey
  11. Get Apikey Detail
  12. Create Project
  13. Get Project
  14. Upload File

Run project

./start.sh

Endpoints

1. Signup /auth/signup

  • 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"
}'

2. Login For Access Token /auth/token

  • 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'

3. Get Access Token From Refresh Token /auth/refresh

  • 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"

4. Confirm Account /auth/confirm

  • 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"
}'

5. Resend Confirmation /auth/resend-confirmation

  • 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"

6. Send Recovery Password Mail /auth/send-reset-password-code

  • 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"

7. Recovery Password /auth/reset-password

  • 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"
}'

8. Get User Details /user/

  • 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"

9. Change Password /user/change-password

  • 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"
}'

10. Generate Apikey /user/generate-apikey

  • 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"

11. Get Apikey Detail /apikey/

  • 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"

12. Create Project /project/

  • 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"
}'

13. Get Project Details /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"

14. Upload File /file/upload

  • 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"

About

Core of feztool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.0%
  • HTML 4.5%
  • Other 0.5%