Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 517 Bytes

openAPI.md

File metadata and controls

41 lines (31 loc) · 517 Bytes

OpenAPI for WebPF service

All the api url shall be prefixed with '/api/[VERSION]', like /api/v1/user/1

api version: v1

authentification and user portal

get current user information

interface request {
  url: '/user/current'
  method: 'get'
}
interface response {}

create a new user

interface request {
  url: '/user/new'
  method: 'put'
}
interface response {
  id: number
}

login

interface request {
  url: '/user'
  method: 'post'
  data: {
    
  }
}