some API (1.0)

Download OpenAPI specification:Download

License: MIT

some api

/notes/{username}

path Parameters
username
required
string
query Parameters
start
string
end
string
header Parameters
Authorization
string

Responses

Response samples

Content type
application/json;charset=utf-8
[
  • {
    }
]

/user

Request Body schema: application/json;charset=utf-8
email
required
string
name
required
string
password
required
string

Responses

Request samples

Content type
application/json;charset=utf-8
{
  • "email": "nini@mail.com",
  • "name": "nini",
  • "password": "password"
}

Response samples

Content type
application/json;charset=utf-8
-9223372036854776000

/notes

query Parameters
start
string
end
string
header Parameters
Authorization
string

Responses

Response samples

Content type
application/json;charset=utf-8
[
  • {
    }
]

/login

Request Body schema: application/json;charset=utf-8
loginPassword
required
string
loginName
required
string

Responses

Request samples

Content type
application/json;charset=utf-8
{
  • "loginPassword": "password",
  • "loginName": "nini@mail.com"
}

Response samples

Content type
application/json;charset=utf-8
{
  • "token": "eyjhbgcioijiuzuxmiisinr5cci6ikpxvcj9.eyJhdWQiOlsic29tZWFwaSJdLCJleHAiOjE2MzE5NjU3MDcsImlhdCI6MTYzMTk2NDgwNywiaXNzIjoic29tZWFwaSIsInByaXZhdGUiOmZhbHNlLCJwcm90ZWN0ZWQiOnRydWV9.CTEFPu36V0NEHRkWL_IV4rJ4J87CL1Irac0Mn99x6lRslYvXLVDaabyDkhV_QqyOeAtq95x4hIAeSJIhE03hT"
}

/note

header Parameters
Authorization
string
Request Body schema: application/json;charset=utf-8
noteBody
required
string
noteAuthor
required
string
noteTitle
required
string

Responses

Request samples

Content type
application/json;charset=utf-8
{
  • "noteBody": "do something good",
  • "noteAuthor": "nini",
  • "noteTitle": "some name"
}

Response samples

Content type
application/json;charset=utf-8
null