Ticket Vendor API service. Provides a REST API to search for events and order event tickets.
-
ticketvendor-api: Defines the REST API for the Ticketvendor API service
- contains the OpenAPI specification file
ticketvendor-api.yaml - contains all model files corresponding to the OpenAPI specification in
ticketvendor-api/src/main/resources/model - contains the
TicketVendorApiinterface using Spring Framework@HttpExchangeannotation. With the help of this annotation Http clients can be generated in a declarative way in order to call the backend implementation.
- contains the OpenAPI specification file
-
ticketvendor-service: The Ticketvendor API backend service implementation
- Create a file named
env.propertiesinside theticketvendor-servicemodule - define following properties:
DB_USER=<you-username>DB_PASSWORD=<your-password>
- use following run configuration in IntelliJ IDEA:
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="TicketvendorServiceApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="ticketvendor-service" />
<option name="SPRING_BOOT_MAIN_CLASS" value="de.workshops.ticketvendorservice.TicketvendorServiceApplication" />
<option name="WORKING_DIRECTORY" value="file://./ticketvendor-service" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="de.workshops.ticketvendorservice.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>The important part here is the WORKING_DIRECTORY property.
- change in to
ticketvendor-servicemodule - run
mvn spring-boot:run
TBD
TBD
TBD