Giter VIP home page Giter VIP logo

Comments (9)

jamebal avatar jamebal commented on May 26, 2024

運行 ./jc.sh -h 可看到api地址

pve:~/software/jmalcloud/jmal-cloud-server# ./jc.sh -h

  Usage:  install.sh COMMAND [OPTIONS]

  Options:
    --port               网盘端口,默认7070
    --blog_port          博客端口,默认7071
    --server_port        服务端口,默认7072(API地址: http://127.0.0.1:7072/public/api)
    --prefix             容器名称前缀,默认为jmalcloud

  Management Commands:
    init,install         安装
    uninstall            卸载
    update               更新
    start                启动
    stop                 停止
    restart              重启
    mongo                执行容器 mongodb 容器内的命令 example: ./jc.sh mongo mongostat
    nginx                执行容器 nginx 容器内的命令   example: ./jc.sh nginx nginx -v
    dump                 备份数据库
    restore              恢复数据库
    reinstall            卸载后再安装

from jmal-cloud-view.

changchichung avatar changchichung commented on May 26, 2024

就這樣嗎??沒有更進一步的文件說明?
我開那個位址都只有錯誤

from jmal-cloud-view.

jamebal avatar jamebal commented on May 26, 2024

http://192.168.11.34:7072/public/api

from jmal-cloud-view.

jamebal avatar jamebal commented on May 26, 2024

打開應該是這樣的:
截屏2022-11-02 16 45 09

from jmal-cloud-view.

changchichung avatar changchichung commented on May 26, 2024

http://192.168.11.34:7072/public/api

就是這個路徑,感謝你!

from jmal-cloud-view.

changchichung avatar changchichung commented on May 26, 2024

抱歉,看起來似乎是要先取得token 然後再去執行其他的功能,對嗎?
不過其他的功能,找不到怎麼把 token 帶進去

curl -X 'GET' 'http://192.168.11.34:7072/user/userList?page=0&pageSize=0&sortProp=string&username=string&showName=string' -H 'accept: */*'

這是其中一個範例,我不曉得 token 要怎麼帶進去?

如果直接執行會回覆未登錄

chchang@hqdc034:~/git/jmal-cloud-server$ curl -X 'GET' 'http://192.168.11.34:7072/user/userList?page=0&pageSize=0&sortProp=string&username=string&showName=string' -H 'accept: */*'
{"code":5,"message":"未登录或登录超时"}

然後這邊的token 是要用 API 去取得? 還是在管理界面中設定的KEY?

from jmal-cloud-view.

jamebal avatar jamebal commented on May 26, 2024

API中確實少了一個可以輸入header的地方

目前可以這樣解決:

  1. 在頁面中獲取token

截屏2022-11-02 17 19 40

  1. 帶入token
curl -X 'GET' 'http://10.10.66.120:7072/website/setting'  -H 'jmal-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJXRUIiLCJpc3MiOiJTZXJ2aWNlIiwidXNlcm5hbWUiOiJkZW1vIn0.lO5HiI8Mz9BnDpj7ApSAHaNpbLnWXhs8DNnhToP8ZbQ'

from jmal-cloud-view.

changchichung avatar changchichung commented on May 26, 2024

在頁面中獲取token

所以在管理界面裡那個新增 API token 目前沒有作用嗎?
那用 API 取得的 token 帶進去應該可以吧?

from jmal-cloud-view.

jamebal avatar jamebal commented on May 26, 2024

在頁面中獲取的token帶進去就可以了

from jmal-cloud-view.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.