versed (1.0.0)

Download OpenAPI specification:Download

Versed API

All api will use versed permission system

var a = 1;

Resume

Get Resume Data

Responses

200

OK

get /resume/data

Local

http://localhost:7100/v1/resume/data

Replace Resume data

Request Body schema: application/json
personal
object

Responses

200

OK

put /resume/data

Local

http://localhost:7100/v1/resume/data

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "personal":
    {
    }
}

Update Resume data

Request Body schema: application/json
property name*
any

Responses

200

OK

patch /resume/data

Local

http://localhost:7100/v1/resume/data

Request samples

Content type
application/json
Copy
Expand all Collapse all
{ }

Echo

Request Body schema: application/json
echo
required
string

Responses

200

OK

post /debug/echo

Local

http://localhost:7100/v1/debug/echo

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "echo": "string"
}

Test an error response

Responses

200

OK

get /debug/error

Local

http://localhost:7100/v1/debug/error

Blog

Create blog post

Request Body schema: application/json
title
required
string
summary
required
string
content
required
string

Responses

200

OK

post /blog/posts

Local

http://localhost:7100/v1/blog/posts

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "string",
  • "summary": "string",
  • "content": "string"
}

Get blog post list

query Parameters
page
number

Responses

200

OK

get /blog/posts

Local

http://localhost:7100/v1/blog/posts

Edit blog post

Request Body schema: application/json
title
required
string
summary
required
string
content
required
string

Responses

200

OK

post /blog/posts/:postId

Local

http://localhost:7100/v1/blog/posts/:postId

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "title": "string",
  • "summary": "string",
  • "content": "string"
}

Get blog post

Responses

200

OK

get /blog/posts/:postId

Local

http://localhost:7100/v1/blog/posts/:postId

User

Register

Request Body schema: application/json
email
required
string
sha256Password
required
string [A-Fa-f0-9]{64}

sha256 hashed password

Responses

200

OK

post /user/register

Local

http://localhost:7100/v1/user/register

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "email": "string",
  • "sha256Password": "string"
}

Email Login

Request Body schema: application/json
email
required
string <email>
sha256Password
required
string [A-Fa-f0-9]{64}

sha256 hashed password

Responses

200

OK

post /user/login

Local

http://localhost:7100/v1/user/login

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "email": "user@example.com",
  • "sha256Password": "string"
}

Get User Info

Responses

200

OK

get /user/info

Local

http://localhost:7100/v1/user/info

Logout

Responses

200

OK

post /user/logout

Local

http://localhost:7100/v1/user/logout