Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: '2.0'
- info:
- version: ''
- title: BLC
- description: |-
- # User roles
- | Role | Platform |
- | ------------------- | --------- |
- | `admin` | Admin |
- | `blc-mentoring` | Mentoring |
- | `blc-coaching` | Coaching |
- | `company-mentoring` | Mentoring |
- | `company-coaching` | Coaching |
- | `mentor` | Mentoring |
- | `mentee` | Mentoring |
- | `coach` | Coaching |
- | `coachee` | Coaching |
- # Status codes
- - 200 – OK – Eyerything is working
- - 201 – OK – New resource has been created
- - 204 – OK – The resource was successfully deleted
- - 400 – Bad Request – The request was invalid or cannot be served. The exact error should be explained in the error payload. E.g. „The JSON is not valid“
- - 401 – Unauthorized – The request requires an user authentication
- - 404 – Not found – There is no resource behind the URI.
- - 500 – Internal Server Error - Any other uncaught error.
- # Pagination
- All paginated endpoints will accept the following query string
- | Key | Default | Description |
- | --- | --- | --- |
- | `limit` | 20 | The number of results per page. |
- | `page` | 1 | The page to return. |
- And the result will contain the following
- | Key | Description |
- | --- | --- |
- | `results` | The array of results. Empty array if no results (not null). |
- | `page` | The current page. |
- | `limit` | The number of results per page. |
- | `total` | The total number of results. |
- # Updating a list of items
- Since the screens for updating a list of items have a "Save" button, that means that the user will modify the data (e.g. add/remove/update items), and then hit "Save" to make the transaction. Because of this, updating a list of items will be done with a single PUT request which contains the whole list of items after the update.
- This makes things more simple, and separate request for creating/deleting/updating items do not make much sense in this case since you have a "Save" button for saving the whole list.
- This only applies to lists of items that are not referenceable, for example studies, experience, contacts etc.
- # Updating Sessions
- The following fields can be updated for a session depending on it's state
- | State | Can be updated | Description |
- | ----------- | -------------------------------- | ------------------------------------------------------------ |
- | `Pending` | `date` | The user cannot *update* a `pending` session, he must `schedule` it. To do so, he will need to set the `date` field. |
- | `Scheduled` | `date` | The user can update the `date` of a session while it is scheduled. |
- | `Done` | `goals`, `achievements`, `files` | The user can update the `goals`, `achievements` and `files` of a session while it is done, but **not** the `date`. |
- # Model Links
- In places where a link to a model is needed, there is the `Link` model which contains an `ID` and a `name`.
- For example, when displaying a process, we need to display a column for the coachee and a column for the company. However, we do not need all details about them directly in the table, but we probably still want to let the user click on it to get more details. So in this case, you can use the `Link` model to display the column but also let the user click on it to get more details.
- # Uploading documents
- Currently, the API for uploading documents accepts the following object
- | Key | Description |
- | ------ | --------------------------- |
- | `data` | Base64 encoded file. |
- | `type` | Type of the file (e.g. pdf) |
- | `name` | The name of the file |
- The `name` and `type` here are required because the image will be uploaded by base64 encoding it, so we must send those details separately.
- This could be solved by uploding the file directly using multipart file upload. However, I am not sure if `go-swagger` can correctly generate the handler for this. So you have 3 possible options:
- - Investigate if `go-swagger` can correctly generate a handler for uploading files
- - Manually generate the handler for this case
- - Use the above object by manually setting the `type` and `name` # User roles
- | Role | Platform |
- | ------------------- | --------- |
- | `admin` | Admin |
- | `blc-mentoring` | Mentoring |
- | `blc-coaching` | Coaching |
- | `company-mentoring` | Mentoring |
- | `company-coaching` | Coaching |
- | `mentor` | Mentoring |
- | `mentee` | Mentoring |
- | `coach` | Coaching |
- | `coachee` | Coaching |
- # Status codes
- - 200 – OK – Eyerything is working
- - 201 – OK – New resource has been created
- - 204 – OK – The resource was successfully deleted
- - 400 – Bad Request – The request was invalid or cannot be served. The exact error should be explained in the error payload. E.g. „The JSON is not valid“
- - 401 – Unauthorized – The request requires an user authentication
- - 404 – Not found – There is no resource behind the URI.
- - 500 – Internal Server Error - Any other uncaught error.
- # Pagination
- All paginated endpoints will accept the following query string
- | Key | Default | Description |
- | --- | --- | --- |
- | `limit` | 20 | The number of results per page. |
- | `page` | 1 | The page to return. |
- And the result will contain the following
- | Key | Description |
- | --- | --- |
- | `results` | The array of results. Empty array if no results (not null). |
- | `page` | The current page. |
- | `limit` | The number of results per page. |
- | `total` | The total number of results. |
- # Updating a list of items
- Since the screens for updating a list of items have a "Save" button, that means that the user will modify the data (e.g. add/remove/update items), and then hit "Save" to make the transaction. Because of this, updating a list of items will be done with a single PUT request which contains the whole list of items after the update.
- This makes things more simple, and separate request for creating/deleting/updating items do not make much sense in this case since you have a "Save" button for saving the whole list.
- This only applies to lists of items that are not referenceable, for example studies, experience, contacts etc.
- # Updating Sessions
- The following fields can be updated for a session depending on it's state
- | State | Can be updated | Description |
- | ----------- | -------------------------------- | ------------------------------------------------------------ |
- | `Pending` | `date` | The user cannot *update* a `pending` session, he must `schedule` it. To do so, he will need to set the `date` field. |
- | `Scheduled` | `date` | The user can update the `date` of a session while it is scheduled. |
- | `Done` | `goals`, `achievements`, `files` | The user can update the `goals`, `achievements` and `files` of a session while it is done, but **not** the `date`. |
- # Model Links
- In places where a link to a model is needed, there is the `Link` model which contains an `ID` and a `name`.
- For example, when displaying a process, we need to display a column for the coachee and a column for the company. However, we do not need all details about them directly in the table, but we probably still want to let the user click on it to get more details. So in this case, you can use the `Link` model to display the column but also let the user click on it to get more details.
- # Uploading documents
- Currently, the API for uploading documents accepts the following object
- | Key | Description |
- | ------ | --------------------------- |
- | `data` | Base64 encoded file. |
- | `type` | Type of the file (e.g. pdf) |
- | `name` | The name of the file |
- The `name` and `type` here are required because the image will be uploaded by base64 encoding it, so we must send those details separately.
- This could be solved by uploding the file directly using multipart file upload. However, I am not sure if `go-swagger` can correctly generate the handler for this. So you have 3 possible options:
- - Investigate if `go-swagger` can correctly generate a handler for uploading files
- - Manually generate the handler for this case
- - Use the above object by manually setting the `type` and `name`
- host: 'localhost:3000'
- basePath: /v1
- schemes:
- - http
- consumes:
- - application/json
- produces:
- - application/json
- securityDefinitions:
- Authorization:
- name: Authorization
- type: apiKey
- in: header
- paths:
- /:
- get:
- operationId: V1Base
- summary: V1 Base
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- message:
- type: string
- default: This Endpoint it's running on V1
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /coachees:
- post:
- operationId: RegisterCoachee
- summary: Coachee Register
- tags:
- - Coachee
- - Register
- - BLC
- - Coachees
- description: |-
- # Note
- The `photo` in `personal` is a base64 encoded image.
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- token:
- type: string
- password:
- type: string
- personal:
- $ref: '#/definitions/personal-info'
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/experience'
- boss:
- $ref: '#/definitions/boss'
- required:
- - token
- - password
- - personal
- - studies
- - experience
- - boss
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/auth-response'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /coaches:
- post:
- operationId: RegisterCoach
- summary: Coach Register
- tags:
- - Coach
- - Register
- - Coaches
- description: |-
- # Note
- The `photo` in `personal` is a base64 encoded image.
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- token:
- type: string
- description: This is the registration token which comes from the registration link sent by email.
- password:
- type: string
- personal:
- $ref: '#/definitions/personal-info'
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/experience'
- coachingStudies:
- type: array
- items:
- $ref: '#/definitions/study'
- coachingExperience:
- type: array
- items:
- $ref: '#/definitions/coaching-experience'
- coachingCertificates:
- type: array
- items:
- $ref: '#/definitions/coaching-certificate'
- required:
- - token
- - password
- - personal
- - studies
- - experience
- - coachingStudies
- - coachingExperience
- - coachingCertificates
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/auth-response'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /coaching/program:
- post:
- operationId: CreateCoachingProgram
- summary: Create Coaching Program
- tags:
- - BLC
- - Programs
- - Coaching
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- companyId:
- type: integer
- details:
- $ref: '#/definitions/program-details'
- tripartita:
- $ref: '#/definitions/program-tripartita'
- processes:
- type: array
- items:
- $ref: '#/definitions/process-link'
- coachPrices:
- type: array
- items:
- type: object
- properties:
- email:
- type: string
- format: email
- price:
- type: integer
- required:
- - email
- - price
- prices:
- $ref: '#/definitions/program-prices'
- finalEvaluation:
- type: boolean
- required:
- - companyId
- - details
- - tripartita
- - processes
- - coachPrices
- - prices
- - finalEvaluation
- responses:
- '201':
- description: ''
- schema:
- $ref: '#/definitions/program'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /coaching/login:
- post:
- operationId: LoginCoaching
- summary: Coaching Login
- tags:
- - BLC
- - Coach
- - Coachee
- - Company
- - Login
- - Coaching
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/credentials'
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/auth-response'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /companies:
- get:
- operationId: GetCompanies
- summary: List Companies
- tags:
- - BLC
- - Companies
- parameters:
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- $ref: '#/definitions/companies'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- patch:
- operationId: RegisterCompany
- summary: Company Register
- tags:
- - Company
- - Register
- - Companies
- description: |-
- # Notes
- The company details will be entered by BLC, so the company will only have to set the password when registering.
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- token:
- type: string
- password:
- type: string
- required:
- - token
- - password
- example:
- token: TOKEN
- password: password
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/auth-response'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- post:
- operationId: CreateCompany
- summary: Create Company
- tags:
- - BLC
- - Companies
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- email:
- type: string
- format: email
- type:
- type: string
- enum:
- - company-mentoring
- - company-coaching
- details:
- $ref: '#/definitions/company-details'
- contacts:
- type: array
- items:
- $ref: '#/definitions/contact'
- required:
- - email
- - details
- - contacts
- - type
- example:
- email: y7XtNyAmTAlw5@o.qari
- type: company-mentoring
- details:
- name: eu consequat dolor
- cif: commodo mollit
- address: aliqua laboris dolor Lorem
- phone: nulla culpa aute
- mobile: id pariatur magna sunt ut
- contactName: quis in dolore sunt
- contacts:
- - email: ryrOr5Hv6CP@IBSAVDZfzhFoRVFFYxpuQB.nsv
- name: culpa adipisicing aliquip
- position: dolor in qui tempor
- company: nulla occaecat
- sector: it
- mobile: Lorem aliquip fugiat
- - email: L4nvWzNeP@eVZKXBjUEsZDuVt.nr
- name: aliq
- position: officia pariatur
- company: officia ut dolor aliqua nisi
- sector: marketing
- mobile: esse pariatur sint eiusmod
- - email: L7O@azgCVvjeRdrvkKNKEbzWeaZjeXMTQn.xjkb
- name: consequat dolor
- position: elit ut
- company: reprehenderit veniam non proident
- sector: it
- mobile: anim qui aliquip eu incididunt
- - email: K5-M87-Xpql9-7@wMOW.tlfq
- name: ut non Duis nisi irure
- position: ''
- company: officia ut fugiat
- sector: it
- mobile: nulla labore in ad
- - email: Q2SyhUEfOxykB@EguKOMLMQounH.nru
- name: aliquip sit
- position: incididunt aliquip non est
- company: magna Duis ex commodo laborum
- sector: marketing
- mobile: cillum
- responses:
- '201':
- description: ''
- schema:
- $ref: '#/definitions/company'
- examples:
- application/json:
- id: 9050898
- name: nisi non
- cif: laboris labore quis
- address: officia eiusmod eu
- mobile: dolore dolor
- contactName: velit deserunt ea Duis
- phone: velit labore dolore
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/companies/{companyId}':
- parameters:
- - name: companyId
- in: path
- required: true
- type: integer
- get:
- operationId: GetCompany
- summary: Get Company
- tags:
- - BLC
- - Companies
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/company'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- put:
- operationId: UpdateCompany
- summary: Update Company
- tags:
- - BLC
- - Companies
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- details:
- $ref: '#/definitions/company-details'
- contacts:
- $ref: '#/definitions/contacts'
- required:
- - details
- - contacts
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /mentees:
- post:
- operationId: RegisterMentee
- summary: Mentee Register
- tags:
- - Mentee
- - Register
- - Mentees
- description: |-
- # Note
- The `photo` in `personal` is a base64 encoded image.
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- token:
- type: string
- password:
- type: string
- personal:
- $ref: '#/definitions/personal-info'
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/experience'
- required:
- - token
- - password
- - personal
- - studies
- - experience
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/auth-response'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /mentoring/program:
- post:
- operationId: CreateMentoringProgram
- summary: Create Mentoring Program
- tags:
- - BLC
- - Programs
- - Mentoring
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- companyId:
- type: integer
- details:
- $ref: '#/definitions/program-details'
- processes:
- type: array
- items:
- $ref: '#/definitions/process-link'
- prices:
- type: object
- required:
- - companyPrice
- properties:
- companyPrice:
- type: integer
- finalEvaluation:
- type: boolean
- required:
- - companyId
- - details
- - processes
- - prices
- - finalEvaluation
- responses:
- '201':
- description: ''
- schema:
- $ref: '#/definitions/program'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /mentoring/login:
- post:
- operationId: LoginMentoring
- summary: Mentoring Login
- tags:
- - BLC
- - Mentee
- - Mentor
- - Company
- - Login
- - Mentoring
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/credentials'
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/auth-response'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /mentors:
- post:
- operationId: RegisterMentor
- summary: Mentor Register
- tags:
- - Mentor
- - Register
- - Mentors
- description: |-
- # Note
- The `photo` in `personal` is a base64 encoded image.
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- token:
- type: string
- password:
- type: string
- personal:
- $ref: '#/definitions/personal-info'
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/experience'
- required:
- - token
- - password
- - personal
- - studies
- - experience
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/auth-response'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /password/forgot:
- post:
- operationId: ForgotPassword
- summary: Forgot password
- tags:
- - BLC
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - Company
- - Forgot password
- - Password
- description: Sends a mail with the reset link for the given email.
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- email:
- type: string
- format: email
- required:
- - email
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- /password/reset:
- post:
- operationId: ResetPassword
- summary: Reset password
- tags:
- - BLC
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - Company
- - Forgot password
- - Password
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- token:
- type: string
- password:
- type: string
- required:
- - token
- - password
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- '/programs/{programId}/processes/{processId}/resources':
- parameters:
- - name: programId
- in: path
- required: true
- type: string
- - name: processId
- in: path
- required: true
- type: string
- post:
- operationId: UploadProcessResource
- summary: Upload Process Resource
- tags:
- - Coach
- - Mentee
- - BLC
- - Resources
- - Programs
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/resource-upload'
- responses:
- '201':
- description: ''
- schema:
- $ref: '#/definitions/resource'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/{programId}/processes/{processId}/sessions/{sessionId}/resources':
- parameters:
- - name: programId
- in: path
- required: true
- type: string
- - name: processId
- in: path
- required: true
- type: string
- - name: sessionId
- in: path
- required: true
- type: string
- post:
- operationId: UploadSessionResource
- summary: Upload Session Resource
- tags:
- - Coach
- - Mentee
- - Resources
- - Programs
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/resource-upload'
- responses:
- '201':
- description: ''
- schema:
- $ref: '#/definitions/resource'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/{programId}/processes':
- parameters:
- - name: programId
- in: path
- required: true
- type: integer
- get:
- operationId: GetProcesses
- summary: List Processes
- tags:
- - BLC
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - Company
- - Processes
- - Programs
- parameters:
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- $ref: '#/definitions/processes'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/processes/sessions/{sessionId}/schedule':
- parameters:
- - name: sessionId
- in: path
- required: true
- type: integer
- post:
- operationId: ScheduleSession
- summary: Schedule Session
- tags:
- - Coach
- - Mentee
- - Sessions
- - Programs
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- date:
- type: integer
- minimum: 0
- required:
- - date
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/process/{processId}':
- parameters:
- - name: processId
- in: path
- required: true
- type: integer
- get:
- operationId: GetProcess
- summary: Get Process
- tags:
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - Processes
- - BLC
- - Programs
- description: |-
- # Open question
- Do we need this endpoint?
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/process'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/processes/sessions/{sessionId}/resources':
- parameters:
- - name: sessionId
- in: path
- required: true
- type: integer
- get:
- operationId: GetSessionResources
- summary: List Session Resources
- tags:
- - Coach
- - Coachee
- - Mentor
- - Mentee
- - Resources
- - Programs
- parameters:
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- $ref: '#/definitions/resources'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/processes/sessions/{sessionId}/complete':
- parameters:
- - name: sessionId
- in: path
- required: true
- type: integer
- post:
- operationId: CompleteSession
- summary: Complete Session
- tags:
- - Coach
- - Mentee
- - Sessions
- - Programs
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- goals:
- type: string
- achievements:
- type: string
- required:
- - goals
- - achievements
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/{programId}':
- parameters:
- - name: programId
- in: path
- required: true
- type: integer
- get:
- operationId: GetProgram
- summary: Get Program
- tags:
- - BLC
- - Company
- - Programs
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/program'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- put:
- operationId: UpdateProgram
- summary: Update Program
- tags:
- - BLC
- - Programs
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- name:
- type: string
- sessions:
- type: integer
- processes:
- type: array
- items:
- $ref: '#/definitions/process-link-with-id'
- required:
- - name
- - sessions
- - processes
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/program'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /programs:
- get:
- operationId: GetPrograms
- summary: List Programs
- tags:
- - BLC
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - Company
- - Programs
- parameters:
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- $ref: '#/definitions/programs'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/processes/sessions/{sessionId}':
- parameters:
- - name: sessionId
- in: path
- required: true
- type: integer
- get:
- operationId: GetSession
- summary: Get Session
- tags:
- - Coach
- - Coachee
- - Mentor
- - Mentee
- - Sessions
- - Programs
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/session'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- put:
- operationId: UpdateSession
- summary: Update Session
- tags:
- - Coach
- - Mentee
- - Sessions
- - Programs
- description: |-
- The fields can be updated based on the current session status, e.g. if the session is scheduled, you can only update the date, if the session is done you can update the goals and achievements but not the date etc.
- # Need more info here
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- date:
- type: integer
- description: |-
- Only updateable if the session is not done
- UNIXTIME
- minimum: 0
- goals:
- type: string
- achievements:
- type: string
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/session'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/{programId}/processes/{processId}/sessions-company':
- parameters:
- - name: programId
- in: path
- required: true
- type: string
- - name: processId
- in: path
- required: true
- type: string
- get:
- operationId: GetSessionsForCompany
- summary: List Sessions Company
- tags:
- - BLC
- - Sessions
- - Programs
- description: 'This is only called by BLC and it doesn''t include the session details, since they are not allowed to see it.'
- parameters:
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- $ref: '#/definitions/sessions-company'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/processes/{processId}/sessions':
- parameters:
- - name: processId
- in: path
- required: true
- type: integer
- get:
- operationId: GetSessions
- summary: List Sessions
- tags:
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - BLC
- - Sessions
- - Programs
- parameters:
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- $ref: '#/definitions/sessions'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/{programId}/processes/{processId}/accept-contract':
- parameters:
- - name: programId
- in: path
- required: true
- type: string
- - name: processId
- in: path
- required: true
- type: string
- post:
- operationId: AcceptContract
- summary: Accept contract
- tags:
- - Coache
- - Coachee
- - Mentor
- - Mentee
- - Processes
- - Programs
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/programs/processes/{processId}/resources':
- parameters:
- - name: processId
- in: path
- required: true
- type: integer
- get:
- operationId: GetProcessResources
- summary: List Process Resources
- tags:
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - BLC
- - Resources
- - Programs
- parameters:
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- $ref: '#/definitions/resources'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/company-details:
- get:
- operationId: GetCompanyDetails
- summary: Get Company Details
- tags:
- - Company
- - User
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/company'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- put:
- operationId: UpdateCompanyDetails
- summary: Update Company Details
- tags:
- - Company
- - User
- description: |-
- # Note
- This is called by the company itself, not by BLC.
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/company'
- example:
- name: adipisicing tempor
- cif: anim ipsum
- address: sunt consectetur in ut ad
- phone: exercitation aliqua officia
- mobile: velit eiusmod Duis
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/company'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/boss:
- put:
- operationId: UpdateBoss
- summary: Update Boss
- tags:
- - Coachee
- - User
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/boss'
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- get:
- operationId: GetBoss
- summary: Get Boss
- tags:
- - Coachee
- - User
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/boss'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/personal:
- put:
- operationId: UpdatePersonalInfo
- summary: Update Personal Info
- tags:
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - BLC
- - User
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/personal-info'
- example:
- name: et nostrud aliqua aute
- surname: cupidatat quis voluptate
- dni: non Duis eiusmod Ut
- phone: reprehenderit ut esse
- mobile: in
- birthday: 6678351
- gender: m
- photo: enim sed
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/personal-info'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- get:
- operationId: GetPersonalInfo
- summary: Get Personal Info
- tags:
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - BLC
- - User
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/personal-info'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/studies:
- get:
- operationId: GetStudies
- summary: Get Studies
- tags:
- - Coach
- - Coachee
- - Mentor
- - Mentee
- - User
- responses:
- '200':
- description: ''
- schema:
- type: array
- items:
- $ref: '#/definitions/study'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- put:
- operationId: UpdateStudies
- summary: Update Studies
- tags:
- - Coach
- - Coachee
- - Mentor
- - Mentee
- - User
- parameters:
- - name: body
- in: body
- schema:
- type: array
- items:
- $ref: '#/definitions/study'
- example:
- - name: sint proident
- school: culpa
- id: 94786368
- - name: U
- school: qui non elit
- - name: cupidatat dolor
- school: sint dolor
- - name: ut commodo sint eiusmod
- school: eu
- - name: elit
- school: enim fu
- id: 43167682
- responses:
- '200':
- description: ''
- schema:
- type: array
- items:
- $ref: '#/definitions/study'
- examples:
- application/json:
- - name: nisi
- school: voluptate aute
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/contacts:
- get:
- operationId: GetCompanyContacts
- summary: Get Company Contacts
- tags:
- - Company
- - User
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/contacts'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- put:
- operationId: UpdateCompanyContacts
- summary: Update Company Contacts
- tags:
- - Company
- - User
- parameters:
- - name: body
- in: body
- schema:
- $ref: '#/definitions/contacts'
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/contacts'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/coaching:
- get:
- operationId: GetCoaching
- summary: Get Coaching
- tags:
- - Coach
- - User
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/coaching-experience'
- certificates:
- type: array
- items:
- $ref: '#/definitions/coaching-certificate'
- required:
- - studies
- - experience
- - certificates
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- put:
- operationId: UpdateCoaching
- summary: Update Coaching
- tags:
- - Coach
- - User
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/coaching-experience'
- certificates:
- type: array
- items:
- $ref: '#/definitions/coaching-certificate'
- required:
- - studies
- - experience
- - certificates
- example:
- studies:
- - name: p
- school: sunt
- experience:
- - sector: marketing
- company: nostrud amet sit voluptate
- id: 24612165
- - sector: it
- company: aute sit incididunt dolor
- - sector: marketing
- company: sit do ut laborum pariatur
- id: 92587902
- - sector: it
- company: Ut
- id: 1567292
- - sector: marketing
- company: ullamco
- certificates:
- - name: id ad
- grade: id ad
- hours: 71
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/coaching-experience'
- certificates:
- type: array
- items:
- $ref: '#/definitions/coaching-certificate'
- required:
- - studies
- - experience
- - certificates
- examples:
- application/json:
- studies:
- - name: mollit
- school: velit cillum in deserunt Duis
- experience:
- - sector: marketing
- company: culpa
- certificates:
- - name: Ut sint
- grade: voluptate do
- hours: 14
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/password:
- post:
- operationId: UpdatePassword
- summary: Change password
- tags:
- - BLC
- - Coach
- - Coachee
- - Mentee
- - Mentor
- - Company
- - User
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- currentPassword:
- type: string
- newPassword:
- type: string
- required:
- - currentPassword
- - newPassword
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /user/experience:
- put:
- operationId: UpdateExperience
- summary: Update Experience
- tags:
- - Coach
- - Coachee
- - Mentor
- - Mentee
- - User
- parameters:
- - name: body
- in: body
- schema:
- type: array
- items:
- $ref: '#/definitions/experience'
- responses:
- '200':
- description: ''
- schema:
- type: array
- items:
- $ref: '#/definitions/experience'
- examples:
- application/json:
- - position: occaecat d
- company: nostrud
- sector: it
- start: 63496045
- end: 11465022
- - position: dolore
- company: in ullamco
- sector: it
- start: 28911354
- end: 95364068
- - position: cillum et
- company: laborum irure
- sector: marketing
- start: 31151991
- end: 82821153
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- get:
- operationId: GetExperience
- summary: Get Experience
- tags:
- - Coach
- - Coachee
- - Mentor
- - Mentee
- - User
- responses:
- '200':
- description: ''
- schema:
- type: array
- items:
- $ref: '#/definitions/experience'
- examples:
- application/json:
- - position: laboris officia enim consequat Excepteur
- company: veniam ut adipisicing in Ut
- sector: it
- start: 44468832
- end: 77876362
- - position: in
- company: quis adipisicing
- sector: it
- start: 18391130
- end: 89156711
- - position: dolore dolor
- company: elit est labore aute in
- sector: it
- start: 68975438
- end: 22876995
- - position: id nisi sit voluptate
- company: cupidatat aute dolore labore
- sector: it
- start: 86263248
- end: 23122353
- - position: incididunt aliqua minim anim dolor
- company: ex
- sector: it
- start: 19686573
- end: 37939898
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/users/{userId}':
- parameters:
- - name: userId
- in: path
- required: true
- type: integer
- get:
- operationId: GetUser
- summary: Get User
- tags:
- - BLC
- - Company
- - Users
- responses:
- '200':
- description: ''
- schema:
- $ref: '#/definitions/user'
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /users:
- get:
- operationId: GetUsers
- summary: List Users
- tags:
- - Company
- - BLC
- - Users
- parameters:
- - name: type
- in: query
- description: 'The type of the account, e.g. "coach", "coachee"'
- required: true
- type: string
- - name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- - name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- results:
- type: array
- items:
- $ref: '#/definitions/user'
- page:
- type: integer
- limit:
- type: integer
- total:
- type: integer
- required:
- - results
- - page
- - limit
- - total
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- /users/invite:
- post:
- operationId: InviteUser
- summary: Invite User
- tags:
- - BLC
- - Users
- parameters:
- - name: body
- in: body
- schema:
- type: object
- properties:
- email:
- type: string
- format: email
- type:
- $ref: '#/definitions/account-type-invitation'
- required:
- - email
- - type
- responses:
- '200':
- description: ''
- schema:
- type: object
- properties:
- id:
- type: integer
- required:
- - id
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- $ref: '#/responses/trait:standardErrors:404'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- '/users/{email}/{type}':
- parameters:
- - name: email
- in: path
- required: true
- type: string
- format: email
- - name: type
- in: path
- required: true
- type: string
- enum:
- - coach
- - coachee
- - mentor
- - mentee
- - company-mentoring
- - company-coaching
- - blc-mentoring
- - blc-coaching
- get:
- operationId: CheckUser
- summary: Check User
- tags:
- - BLC
- - Users
- responses:
- '200':
- description: ''
- '400':
- $ref: '#/responses/trait:standardErrors:400'
- '401':
- $ref: '#/responses/trait:standardErrors:401'
- '404':
- description: ''
- schema:
- $ref: '#/definitions/error-response'
- '500':
- $ref: '#/responses/trait:standardErrors:500'
- security:
- - Authorization: []
- parameters:
- 'trait:paginable:limit':
- name: limit
- in: query
- required: false
- type: integer
- minimum: 1
- 'trait:paginable:page':
- name: page
- in: query
- required: false
- type: integer
- minimum: 1
- responses:
- 'trait:standardErrors:400':
- description: ''
- schema:
- $ref: '#/definitions/error-response'
- 'trait:standardErrors:401':
- description: ''
- schema:
- $ref: '#/definitions/error-response'
- 'trait:standardErrors:404':
- description: ''
- schema:
- $ref: '#/definitions/error-response'
- 'trait:standardErrors:500':
- description: ''
- schema:
- $ref: '#/definitions/error-response'
- definitions:
- account-info:
- title: Account Info
- type: object
- properties:
- email:
- type: string
- format: email
- type:
- $ref: '#/definitions/account-type'
- active:
- type: boolean
- required:
- - email
- - type
- - active
- coaching-certificate:
- title: Coaching Certificate
- type: object
- properties:
- name:
- type: string
- grade:
- type: string
- hours:
- type: integer
- minimum: 1
- maximum: 256
- required:
- - name
- - grade
- - hours
- error:
- title: Error
- type: object
- properties:
- message:
- type: string
- code:
- type: integer
- required:
- - message
- - code
- contacts:
- title: Contacts
- type: array
- items:
- $ref: '#/definitions/contact'
- process:
- title: Process
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- status:
- $ref: '#/definitions/process-status'
- teacher:
- $ref: '#/definitions/process-account-link'
- company:
- $ref: '#/definitions/link'
- student:
- $ref: '#/definitions/process-account-link'
- required:
- - id
- - status
- - teacher
- - company
- - student
- program-details:
- title: Program Details
- type: object
- properties:
- name:
- type: string
- start:
- type: integer
- description: UNIXTIME
- minimum: 0
- sessions:
- type: integer
- minimum: 1
- maximum: 32
- required:
- - name
- - start
- - sessions
- credentials:
- title: Credentials
- type: object
- properties:
- email:
- type: string
- format: email
- password:
- type: string
- required:
- - email
- - password
- account-type:
- title: Account Type
- type: string
- enum:
- - admin
- - coach
- - coachee
- - mentor
- - mentee
- - company-mentoring
- - company-coaching
- - blc-mentoring
- - blc-coaching
- study:
- title: Study
- type: object
- properties:
- name:
- type: string
- maxLength: 50
- school:
- type: string
- maxLength: 100
- required:
- - name
- - school
- resource-upload:
- title: Resource Upload
- type: object
- properties:
- data:
- type: string
- description: Base64 encoded string of the file
- name:
- type: string
- description: The name of the file.
- required:
- - data
- gender:
- title: Gender
- type: string
- enum:
- - m
- - f
- program:
- title: Program
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- details:
- $ref: '#/definitions/program-details'
- company:
- $ref: '#/definitions/company'
- tripartita:
- $ref: '#/definitions/program-tripartita'
- completed:
- type: integer
- minimum: 0
- maximum: 100
- prices:
- $ref: '#/definitions/program-prices'
- required:
- - id
- - details
- - company
- - completed
- boss:
- title: Boss
- type: object
- properties:
- name:
- type: string
- position:
- type: string
- required:
- - name
- - position
- resource:
- title: Resource
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- name:
- type: string
- by:
- $ref: '#/definitions/link'
- uploadedOn:
- type: integer
- minimum: 0
- description: UNIXTIME
- url:
- type: string
- format: uri
- required:
- - id
- - name
- - by
- - uploadedOn
- - url
- program-tripartita:
- title: Program Tripartita
- type: object
- properties:
- initial:
- type: boolean
- intermediate:
- type: boolean
- final:
- type: boolean
- required:
- - initial
- - intermediate
- - final
- session:
- title: Session
- allOf:
- - $ref: '#/definitions/session-details'
- - type: object
- properties:
- id:
- type: integer
- minimum: 0
- done:
- type: boolean
- resources:
- type: array
- items:
- $ref: '#/definitions/resource'
- required:
- - id
- - done
- - resources
- processes-company:
- title: Processes Company
- type: array
- items:
- $ref: '#/definitions/process-company'
- process-status:
- title: Process Status
- type: string
- enum:
- - ongoing
- - done
- coaching-experience:
- title: Coaching Experience
- type: object
- properties:
- sector:
- $ref: '#/definitions/sector'
- company:
- type: string
- required:
- - sector
- - company
- session-company:
- title: Session Company
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- status:
- $ref: '#/definitions/session-status'
- date:
- type: integer
- minimum: 0
- description: UNIXTIME
- required:
- - id
- - status
- - date
- sector:
- title: Sector
- type: string
- enum:
- - it
- - marketing
- companies:
- title: Companies
- type: array
- items:
- $ref: '#/definitions/company'
- company-details:
- title: Company Details
- type: object
- properties:
- name:
- type: string
- cif:
- type: string
- address:
- type: string
- phone:
- type: string
- mobile:
- type: string
- contactName:
- type: string
- required:
- - name
- - cif
- - address
- - mobile
- - contactName
- auth-response:
- title: Auth Response
- type: object
- properties:
- token:
- type: string
- type:
- $ref: '#/definitions/account-type'
- required:
- - token
- - type
- programs:
- title: Programs
- type: array
- items:
- $ref: '#/definitions/program'
- process-link:
- title: Process Link
- type: object
- properties:
- student:
- type: string
- format: email
- teacher:
- type: string
- format: email
- required:
- - student
- - teacher
- error-response:
- title: Error Response
- type: object
- properties:
- error:
- $ref: '#/definitions/error'
- required:
- - error
- user:
- title: User
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- account:
- $ref: '#/definitions/account-info'
- personal:
- $ref: '#/definitions/personal-info'
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/experience'
- coaching:
- $ref: '#/definitions/coaching-info'
- boss:
- $ref: '#/definitions/boss'
- required:
- - id
- - account
- - personal
- - studies
- - experience
- session-status:
- title: Session Status
- type: string
- enum:
- - pending
- - scheduled
- - done
- personal-info:
- title: Personal Info
- type: object
- properties:
- name:
- type: string
- surname:
- type: string
- dni:
- type: string
- phone:
- type: string
- mobile:
- type: string
- birthday:
- type: integer
- description: UNIX
- minimum: 0
- gender:
- $ref: '#/definitions/gender'
- photo:
- type: string
- description: |-
- If this is returned by the API (e.g. if you request a user's details), then it will be a URL to the photo.
- If you are posting/updating the data, then it must be a base64 encoded image.
- required:
- - name
- - surname
- - dni
- - mobile
- - birthday
- - gender
- - photo
- link:
- title: Link
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- name:
- type: string
- required:
- - name
- - id
- coaching-info:
- title: Coaching Info
- type: object
- required:
- - studies
- - experience
- - certificates
- properties:
- studies:
- type: array
- items:
- $ref: '#/definitions/study'
- experience:
- type: array
- items:
- $ref: '#/definitions/coaching-experience'
- certificates:
- type: array
- items:
- $ref: '#/definitions/coaching-certificate'
- session-details:
- title: Session Details
- type: object
- properties:
- date:
- type: integer
- minimum: 0
- description: UNIXTIME
- goals:
- type: string
- achievements:
- type: string
- status:
- $ref: '#/definitions/session-status'
- required:
- - status
- company:
- title: Company
- allOf:
- - type: object
- properties:
- id:
- type: integer
- minimum: 0
- contacts:
- $ref: '#/definitions/contacts'
- required:
- - id
- - $ref: '#/definitions/company-details'
- resources:
- title: Resources
- type: array
- items:
- $ref: '#/definitions/resource'
- sessions-company:
- title: Sessions Company
- type: array
- items:
- $ref: '#/definitions/session-company'
- experience:
- title: Experience
- type: object
- properties:
- position:
- type: string
- company:
- type: string
- sector:
- $ref: '#/definitions/sector'
- start:
- type: integer
- description: UNIXTIME
- minimum: 0
- end:
- type: integer
- description: UNIXTIME
- minimum: 0
- required:
- - position
- - company
- - sector
- - start
- - end
- example:
- position: in reprehenderit amet officia laboris
- company: veniam incididunt dolor
- sector: marketing
- start: 45154383
- end: 97789585
- processes:
- title: Processes
- type: array
- items:
- $ref: '#/definitions/process'
- sessions:
- title: Sessions
- type: array
- items:
- $ref: '#/definitions/session'
- program-prices:
- title: Program Prices
- type: object
- properties:
- companyPrice:
- type: integer
- minimum: 0
- coachPrice:
- type: integer
- minimum: 0
- required:
- - companyPrice
- - coachPrice
- process-company:
- title: Process Company
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- status:
- $ref: '#/definitions/process-status'
- account1:
- $ref: '#/definitions/link'
- account2:
- $ref: '#/definitions/link'
- sessionsTotal:
- type: integer
- sessionsDone:
- type: integer
- required:
- - id
- - status
- - account1
- - account2
- - sessionsTotal
- - sessionsDone
- contact:
- title: Contact
- type: object
- properties:
- email:
- type: string
- format: email
- name:
- type: string
- position:
- type: string
- company:
- type: string
- sector:
- $ref: '#/definitions/sector'
- phone:
- type: string
- mobile:
- type: string
- required:
- - email
- - name
- - position
- - company
- - sector
- - mobile
- account-type-invitation:
- title: Account Type Invitation
- type: string
- enum:
- - coach
- - coachee
- - mentor
- - mentee
- - company-mentoring
- - company-coaching
- process-link-with-id:
- title: Process Link With ID
- type: object
- properties:
- student:
- type: string
- format: email
- teacher:
- type: string
- format: email
- id:
- type: integer
- description: process id
- required:
- - student
- - teacher
- process-account-link:
- title: Process Account Link
- type: object
- properties:
- id:
- type: integer
- minimum: 0
- name:
- type: string
- email:
- type: string
- format: email
- active:
- type: boolean
- required:
- - id
- - name
- - email
- - active
Add Comment
Please, Sign In to add comment