homeceu / cems-docs Goto Github PK
View Code? Open in Web Editor NEWAPI Docs for CEMS
API Docs for CEMS
Link to endpoint:
https://homeceu.github.io/cems-docs/#/User%20Licenses/addUserLicense
When hitting the endpoint with the information provided in the old documentation:
{
"license_type": "test license",
"license_number": "123456",
"license_expires_on": "2020-03-31T05:00:00.000Z",
"license_state": "TX"
}
This error is presented:
{
"errors": [
"An exception occurred while executing 'INSERT INTO user_license (number, expires_on, created_at, updated_at, deleted_at, license_type_id, state_id, user_id, created_by, updated_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [\"123456\", \"2020-03-31\", \"2020-05-13 14:58:23\", \"2020-05-13 14:58:23\", \"0000-01-01 00:00:00\", null, 46, 536765, 536765, 536765]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'license_type_id' cannot be null"
]
}
Link to endpoint:
https://homeceu.github.io/cems-docs/#/User/addCompanyMember
When using the information provided in the old documentation:
{
"company_id": 4,
"first_name": "Test",
"last_name": "Testington",
"employee_id": "909090",
"access_level": "limited",
"is_active": true,
"is_coporate_admin": false,
"asha_code": "A12345",
"email_address": "[email protected]",
"hire_date": "2018-02-13",
"organizational_unit_id": 987,
"address_1": "1234 N Main st",
"address_2": "",
"city": "Dallas",
"state": "TX",
"zip": "43449",
"country": "USA",
"phone_number": "555-555-5555",
"phone_number_type": "primary",
"phone_country": "US",
"license_type": "pt",
"license_state": "TX",
"license_number": "G1234",
"license_expires_on": "2020-12-31",
"group_ids": [
15046
]
}
This error is presented:
{
"errors": [
"The class 'Doctrine\\ORM\\UnitOfWork' was not found in the chain configured namespaces Cems\\FeatureReaderBundle\\Entity, models, JMose\\CommandSchedulerBundle\\Entity"
]
}
When the group_ids
parameter is removed, this error is presented:
{
"errors": [
"An exception occurred while executing 'INSERT INTO user_address (address_1, address_2, city, zip, created_at, updated_at, deleted_at, country_id, state_id, address_type_id, created_by, updated_by, user_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [\"1234 N Main st\", \"\", \"Dallas\", \"43449\", \"2020-05-13 15:14:29\", \"2020-05-13 15:14:29\", \"0000-01-01 00:00:00\", null, 46, 1, 536765, 536765, 536783]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'country_id' cannot be null"
]
}
Link to endpoint:
https://homeceu.github.io/cems-docs/#/User/post_user__userId__phone
{
"phone_number_type": "alternate",
"phone_number": "123-555-9999",
"phone_country": "Pluto",
"phone_extension": ""
}
When entering a non-country code string into the phone_country
field, it returns this error that should be private:
{
"errors": [
"An exception occurred while executing 'INSERT INTO user_phone (phone_number, digits_only, extension, created_at, updated_at, deleted_at, phone_number_type_id, user_id, country_id, created_by, updated_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [\"123-555-9999\", \"1235559999\", \"\", \"2020-05-28 11:24:09\", \"2020-05-28 11:24:09\", \"0000-01-01 00:00:00\", 2, 536781, null, 536765, 536765]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'country_id' cannot be null"
]
}
Additionally, ANYTHING can be entered into the phone_number
field and is accepted/created. Example:
{
"id": 353007,
"type": "alternate",
"country": "US",
"number": "1235559999",
"extension": ""
},
{
"id": 353008,
"type": "alternate",
"country": "US",
"number": "phonenumber",
"extension": ""
},
{
"id": 353009,
"type": "alternate",
"country": "US",
"number": "*&#lkad23526",
"extension": ""
}
Link to endpoint:
https://homeceu.github.io/cems-docs/#/User/post_company__companyId__user_account_recovery
When entering an incorrect email address it returns a 404 status but the error is blank.
{
"errors": [
""
]
}
Link to endpoint:
https://homeceu.github.io/cems-docs/#/Group/post_company__companyId__group__groupId__member
Adding the same unique_id to the same group does not result in a warning or error. It allows the same unique_id to be added with a status 200 and increases the group count by 1 each time.
Link to endpoint:
https://homeceu.github.io/cems-docs/#/User/post_users_course_register
When the given userId
has a lower access level such as limited, the endpoint responds with a status 200 but shows this output:
{
"data": {
"course_ineligibility": [
{
"userId": 536781,
"courseId": 8074,
"companyId": 4
}
]
},
"messages": {
"message": "Please check response data for problems assigning courses."
}
}
Link to endpoint:
https://homeceu.github.io/cems-docs/#/User/post_profile_merge
Information passed in the body of the endpoint:
{
"user_id": User ID of the account to merge from,
"company_id": Company ID of the account to merge from,
"email_id": Email ID of the currently logged in user(merging to)
}
Results in a 403 even though the user is logged in:
{
"errors": [
"User unauthenticated"
]
}
Add descriptions to these endpoints to help explain the difference and list possible values. Also confirm that the constant is not passed in the return statement .. I thought these had constants?
if these endpoints are identical and just alias to each other then say that in the description..
https://homeceu.github.io/cems-docs/#/Course/get_company__companyId__course_type
https://homeceu.github.io/cems-docs/#/Course/get_company__companyId__item_format
Link to endpoint:
https://homeceu.github.io/cems-docs/#/User/delete_user__userId__email
{user_id}
is ignored when deleting the email. To test the endpoint the path used was /api/v2/user/999999/email and still resulted in a status 200 and upon verification, the email was deleted. This was done on a user account that has no admin privileges.
It should be noted that on a non-admin account, it is not possible to delete emails that do not belong to the current user.
Link to endpoint:
https://homeceu.github.io/cems-docs/#/Group/delete_company__companyId__group__groupId__member__uniqueId_
Cannot get endpoint to work properly. Endpoint only returns 404 status:
{
"messages": [
"User does not exist in group"
]
}
NOTE: User was verified to be in the provided group.
When adding the same user to a group multiple times (SEE: Issue #7 ) the error is different.
{
"errors": [
"Some users could not be removed: "
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.