Testimonials

CRUD endpoints for a user's testimonial

Please note that in all urls & code samples you'll need to replace:username and :corporation with appropriate values

Get All Testimonials

GET /v2/organization/:corporation/expert/:username/testimonial

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Url

Name
Type
Description

corporation

number

Corporation ID

username

string

Unique username

Response

 {
  data: [
    {
      id: 1,
      name: '',
      title: '',
      company: '',
      url: '',
      recommendation: ''
    },
  ],
  success: true
}

Code

Get Individual Testimonial

GET /v2/organization/:corporation/expert/:username/testimonial/:id

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Url

Name
Type
Description

corporation

number

Corporation ID

username

string

Unique username

id

number

Testimonial ID

Response

Code

Create Testimonial

POST /v2/organization/:corporation/expert/:username/testimonial

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Url

Name
Type
Description

corporation

number

Corporation ID

username

string

Unique username

Body

Name
Type
Description

name*

string

Name of Person

title*

string

Title of Person

company*

string

Company of Person

recommendation*

string

Recommendation Text

url

string

Url of Person's Company

Response

Code

Update Testimonial

PUT /v2/organization/:corporation/expert/:username/testimonial/:id

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Url

Name
Type
Description

corporation

number

Corporation ID

username

string

Unique username

id

number

Testimonial ID

Body

Name
Type
Description

name*

string

Name of Person

title*

string

Title of Person

company*

string

Company of Person

recommendation*

string

Recommendation Text

url

string

Url of Person's Company

Response

Code

Delete Testimonial

DELETE /v2/organization/:corporation/expert/:username/testimonial/:id

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Url

Name
Type
Description

corporation

number

Corporation ID

username

string

Unique username

id

number

Testimonial ID

Response

Code

Last updated

Was this helpful?