TEJAPS / Camunda_SpringBoot

Camunda_SpringBoot
22 stars 27 forks source link

My swagger Api is not comming for spring boot application #16

Open achyuthe opened 2 years ago

achyuthe commented 2 years ago

@TEJAPS I am not able to see my camunda rest for the spring boot application.

TEJAPS commented 2 years ago

@achyuthe , can you please rephrase your question whether the issue is with camunda engine or camunda client

which API are you talking about can you provide more such details, thank you

achyuthe commented 2 years ago

@TEJAPS My email is achyuthreddyerla@gmail.com. Can we talk there.

TEJAPS commented 2 years ago

Try going through this demo once : https://www.youtube.com/watch?v=jKELnreX-80

achyuthe commented 2 years ago

@TEJAPS This is my pom.xml. I am not able to deploy my flow into camunda using the rest end point

<?xml version="1.0" encoding="UTF-8"?>

4.0.0 org.springframework.boot spring-boot-starter-parent 2.2.0.RELEASE com.test.usx erb 1.4 erb Workflow 2019 cloudera https://repository.cloudera.com/artifactory/cloudera-repos/ confluent http://packages.confluent.io/maven/ camunda-bpm-nexus Camunda Maven Repository https://app.camunda.com/nexus/content/groups/public cloudera https://repository.cloudera.com/artifactory/cloudera-repos/ confluent http://packages.confluent.io/maven/ releases Internal Releases http://nexus.rxcorp.com:8081/nexus/repository/releases/ snapshots true Internal Snapshots http://nexus.rxcorp.com:8081/nexus/repository/snapshots/ UTF-8 UTF-8 8 1.${java.level} ${java.version} 2.11 ${scala.binary.version}.12 ${java.version} ${java.version} 3.3.1 2.1.0.RELEASE 1.8.2 7.14.0 3.3.1 1.6.2 1.3.5 1.9.12 1.5 1.3.0-alpha4 1.6 3.2.2 12.1.0.2 1.6 2.9.2 1.4.197 3.0.1 1.0-m5.1 3.8.1 org.camunda.bpm camunda-bom ${camunda.version} import pom org.scala-lang scala-library ${scala.version} org.springframework.boot spring-boot-starter org.springframework.kafka spring-kafka org.springframework.boot spring-boot-starter-web org.camunda.bpm.springboot camunda-bpm-spring-boot-starter ${camunda.version} org.camunda.bpm.springboot camunda-bpm-spring-boot-starter-rest ${camunda.version} org.camunda.bpm.springboot camunda-bpm-spring-boot-starter-webapp ${camunda.version} org.springframework.boot spring-boot-starter-security org.springframework.boot spring-boot-starter-jdbc org.springframework.boot spring-boot-devtools runtime true com.rxcorp.usx.ebo event-schema-utils ${event-schema-utils.version} com.sun.mail javax.mail ${javax.mail.version} org.springframework.boot spring-boot-configuration-processor true org.projectlombok lombok true org.camunda.bpm.extension.swagger camunda-bpm-swagger-json 7.8.0 org.webjars swagger-ui 3.1.4 org.springframework.boot spring-boot-starter-test test com.h2database h2 ${h2batabase.version} runtime com.oracle ojdbc7 ${ojdbc.version} org.apache.avro avro ${avro.version} io.confluent kafka-avro-serializer ${kafka-avro-serializer.version} com.internetitem logback-elasticsearch-appender ${logback-elastic.version} io.springfox springfox-swagger2 ${springfox-swagger.version} io.springfox springfox-swagger-ui ${springfox-swagger.version} org.springframework.cloud spring-cloud-starter-vault-config ${spring.vault.version} org.springframework.kafka spring-kafka-test test io.spray spray-json_${scala.binary.version} ${spray.json.version} org.springframework.boot spring-boot-maven-plugin com.rxcorp.usx.ebo.EventBasedOrchestratorApplication ZIP org.apache.maven.plugins maven-compiler-plugin ${maven-compiler-plugin.version} ${maven.compiler.source} ${maven.compiler.target} compile compile external.atlassian.jgitflow jgitflow-maven-plugin ${jgitflow-maven-plugin.version} true true true true true false RC true true true true v net.alchim31.maven scala-maven-plugin ${scala-maven-plugin.version} ${scala.binary.version} ${scala.version} -Xmx4g incremental true scala-compile-first process-resources add-source compile scala-test-compile process-test-resources testCompile pl.project13.maven git-commit-id-plugin ${git-commit-id-plugin.version} get-the-git-infos revision ${project.basedir}/.git git false true ${project.build.outputDirectory}/git.properties json false false -dirty
TEJAPS commented 2 years ago

Based on versions the base rest path prefix is changing, it should be one of the below POST request:

  1. http://localhost:8085/engine-rest/deployment/create
  2. http://localhost:8085/rest/deployment/create

prefix that is changing is engine-rest or rest

AkshitKumar13 commented 2 years ago

Hi @TEJAPS if your Swagger UI is not coming then i can help you in this project please assign this to me

TEJAPS commented 2 years ago

Hi @AkshitKumar13 I have not added any swagger ui for springboot app - as it does not have much exposed custom api's. All we are using so far is camunda api's only.

But if you are interested You can come up with any one utility api And then you can proceed with swagger ui for the same.

Thank you