Development_ REST API - aegif/NemakiWare GitHub Wiki

English/日本語


User

Group

Archive

Solr

AuthToken

Introduction

  • You can request registering an authentication token for a user.
  • A token is generated as UUID and expires at some point.

Register

http://localhost:8080/core/rest/authtoken/{userName}/register?app={appName}

  • {appName}: optional
{
    "status": "success",
    "value": {
        "app": "",
        "expiration": 1433898326668,
        "token": "22d418e3-0f69-4394-a60f-24555b5760f8",
        "userName": "admin"
    }
}

Send

The token is sent as the following HTTP parameters:

  • nemaki_auth_token: registered token
  • nemaki_auth_token_app: {appName} above