Git Product home page Git Product logo

cems-docs's People

Contributors

ceeem avatar tempcke avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ceeem

cems-docs's Issues

POST /api/v2/user/{user_id}/license

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"
    ]
}

POST /api/v2/company/user

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"
    ]
}

POST /api/v2/user/{user_id}/phone

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": ""
            }

add descriptions to /company/ID/course_type and /company/ID/item_format ?

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

DELETE /api/v2/user/{user_id}/email

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.

DELETE /api/v2/company/{company_id}/group/{group_id}/member/{unique_id}

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: "
    ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.