how to use the Admin API without accessing the administration page?

(from github.com/boyoyon8)
Now, Admin API can not use without an access token. This is also the same as “Access Token Creation API(PUT /admin/api/accesstoken/setting)”.
In other words, the first creation of an access token must be done via the administration page?

how to use the Admin API without accessing the administration page ?

(from github.com/marevol)
What do you want to do??
I would like to know the purpose to do that… need more info…

(from github.com/boyoyon8)
Thanks reply.

I would like to set up and run crawler on Fess from other systems.
I hope I can do one of the following…

  • get the first token via Fess API
  • set the first token to Fess stored data(db?)

(from github.com/marevol)
Admin API cannot be accessed without a token to avoid any security issues.
I think you have 2 solutions:

  • Create access_token.bulk to app/WEB-INF/classes/fess_indices/.fess_config before first Fess startup. Tokens will be inserted from access_token.bulk on startup.

or

  • Access to elasticsearch directly.

(from github.com/boyoyon8)

Create access_token.bulk to app/WEB-INF/classes/fess_indices/.fess_config before first Fess startup. Tokens will be inserted from access_token.bulk on startup.

thanks, I try it.

(from github.com/boyoyon8)
sorry, plz tell me how to write access_token.bulk…

(from github.com/marevol)
See Elasticsearch Bulk API.

(from github.com/boyoyon8)
OK, thanks for many supports !!