Skip to content

akushnarov/test-cloud-build

Repository files navigation

If This Then Ad

API for entities management

Supported entity names (:entity):

  • user
  • rule

In most methods you need to specify the entity ID (:id) which is a unique entity identifier.

For the api methods "Create" and "Update" you need to send the full entity object in the request body in the JSON format.

API endpoints

Action Method Endpoint
Create new entity POST /api/:entity/create/:id
Update existing entity PUT /api/:entity/update/:id
Get entity GET /api/:entity/get/:id
Delete entity DELETE /api/:entity/delete/:id
List all entities GET /api/:entity/list

Development

Git: Pre commit

To do all the checks before the commit automatically please add the git/pre-commit to your .git/hooks/ directory. The easiest way would be to create a soft link: cd .git/hooks/; ln -sf ../../git/pre-commit.

To run all checks manually you can execute the following code from the project root:

  • For server: cd server; npm run pre-commit.
  • For client: cd cleint; npm run pre-commit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published