Skip to content

Consume Bitrix24 task and user data with Spring- Rest Template

Notifications You must be signed in to change notification settings

carlossfb/Bitrix24_RestTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Compile application

    mvn clean package

Create a docker image from Dockerfile

    docker build  -t bitrix24-consume_api:1.0.0 .

Run application

    docker run --name bitrix24 -p 8080:8080  -d bitrix24-consume_api:1.0.0

Endpoints

/api/

Returns departaments of the Bitrix24 account.

    {
        "result": [
            {
            "ID": "1",
            "NAME": "Bitrix"
            },
            {
            "ID": "3",
            "NAME": "Accounts Department"
            },
            {
            "ID": "5",
            "NAME": "Sales Department"
            },
            {
            "ID": "7",
            "NAME": "T.I"
            }
        ]
    }

/api/department/{id}

Returns users of department and his tasks of Bitrix24.

    {
        "result": [
            {
            "task": [
                
            ],
            "ID": "5",
            "NAME": "User_name",
            "LAST_NAME": "2",
            "EMAIL": "email@gmail.com"
            }
        ]
    }

Create a build (and change name of JAR) for use in Docker container (Example POM)

   mvn clean package

(Example POM)

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
		<finalName>application</finalName> *Name of JAR file*
	</build>

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

About

Consume Bitrix24 task and user data with Spring- Rest Template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published