User Tools
development:applications:ticketer_light_gateway
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:applications:ticketer_light_gateway [2022/10/03 14:41] – 10.91.110.100 | development:applications:ticketer_light_gateway [2022/10/03 15:04] (current) – 10.91.110.100 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| The ticketer light gateway application is utilised as a api gateway for the ticketer-light project to bridge the gap between ticketer business logic and exposing a more generalised api layer. It provides data integration points for tickets within Errigal' | The ticketer light gateway application is utilised as a api gateway for the ticketer-light project to bridge the gap between ticketer business logic and exposing a more generalised api layer. It provides data integration points for tickets within Errigal' | ||
| + | |||
| + | Repo: https:// | ||
| + | |||
| + | ===== Local Dev App Urls ===== | ||
| + | * http:// | ||
| + | |||
| + | ===== Project Documents ===== | ||
| + | https:// | ||
| + | |||
| + | ===== Apis / Data Accessed ===== | ||
| + | |||
| + | API endpoints for core Ticket Areas including (using spring-webflux for REST instead of graphql due to underlying business logic): | ||
| + | * Form | ||
| + | * Attachment | ||
| + | * Contact Details | ||
| + | |||
| + | * Running Log | ||
| + | * Ticket History | ||
| + | * Ticket Updates | ||
| + | * User Data for Ticketer | ||
| + | * Visbility | ||
| + | * Workflow | ||
| + | |||
| + | Graphql Query API endpoints for core Ticket Areas: | ||
| + | |||
| + | < | ||
| + | type Query { | ||
| + | tickets(criteria: | ||
| + | ticketForms(ticketId: | ||
| + | allForms: [Form] | ||
| + | allFormGroups: | ||
| + | relatedTickets(ticketId: | ||
| + | users(homeMarket: | ||
| + | workflows(active: | ||
| + | previousStatus(ticketId: | ||
| + | nextStatuses(workflowId: | ||
| + | allStatusesForWorkflow(workflowId: | ||
| + | allStatuses: | ||
| + | visibilities: | ||
| + | ticketTypes: | ||
| + | ticketPriorities: | ||
| + | hubs: [NetworkElement] | ||
| + | nodesOfHub(hubId: | ||
| + | hubsOfVisibility(visibility: | ||
| + | networkIdentifiersOfVisibility(visibility: | ||
| + | ofnTicketDeviceDetails(ticketIds: | ||
| + | ofnTicketFaultDetails(ticketIds: | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Graphql Object types: | ||
| + | < | ||
| + | Ticket | ||
| + | TicketStatus | ||
| + | Workflow | ||
| + | GNode | ||
| + | NetworkIdentifier | ||
| + | User | ||
| + | Form | ||
| + | KeyValue | ||
| + | FormGroup | ||
| + | Visibility | ||
| + | Region | ||
| + | TicketType | ||
| + | TicketPriorityConfig | ||
| + | TicketPriorityConfigEntry | ||
| + | NetworkElement | ||
| + | OFNFault | ||
| + | OFNDevice | ||
| + | </ | ||
| + | |||
| + | ===== Architecture ===== | ||
| + | {{ : | ||
| + | |||
| + | ===== Development Configuration ===== | ||
| + | Project can be pointed at local or server deployed version of all api endpoints listed above. | ||
| + | See src/ | ||
| + | |||
| + | ===== Deployment ===== | ||
| + | The ticketer-light-gateway is deployed to the server handlers in **/ | ||
| + | |||
| + | Current Config Fields Are: | ||
| + | |||
| + | < | ||
| + | # Build Info | ||
| + | jenkins.build.identifier=ticketer-light-gateway » ticketer-light-gateway-feature-branches » REL-4.1.0 REL-4.1.0.1 | ||
| + | jenkins.build.branch=REL-4.1.0 | ||
| + | jenkins.build.number=1 | ||
| + | jenkins.build.time=2022-07-26 19:11:38 | ||
| + | deployment.time=2022-08-08 15:30:19 | ||
| + | |||
| + | spring.main.allow-bean-definition-overriding=true | ||
| + | |||
| + | # General logging settings | ||
| + | spring.application.name=ticketer-light-gateway | ||
| + | logging.file.max-history=5 | ||
| + | logging.file.max-size=10MB | ||
| + | logging.file.name=/ | ||
| + | |||
| + | # Server settings | ||
| + | server.port=8210 | ||
| + | server.servlet.context-path=/ | ||
| + | spring.webflux.base-path=/ | ||
| + | |||
| + | allowedOrigins=https:// | ||
| + | |||
| + | # DB Settings | ||
| + | spring.r2dbc.url=r2dbc: | ||
| + | spring.r2dbc.username=root | ||
| + | spring.r2dbc.password==T7g(? | ||
| + | |||
| + | # | ||
| + | spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true | ||
| + | |||
| + | graphql.mapping=/ | ||
| + | graphql.servlet.actuator-metrics=true | ||
| + | graphql.annotations.base-package=com.errigal.ticketerlightgateway.model | ||
| + | |||
| + | auth.jwt.jwksUrlPath=https:// | ||
| + | |||
| + | userprofile.uri=https:// | ||
| + | userprofile.clientId=0f59ca3a-353c-11eb-b954-0242ac110002 | ||
| + | userprofile.clientSecret=jwha8WbRaTPZMW7mbhhEyl4iB1hAKa+xhGC/ | ||
| + | |||
| + | ticketer.url=https:// | ||
| + | |||
| + | #for OFN email | ||
| + | spring.codec.max-in-memory-size=10MB | ||
| + | |||
| + | #Metrics related configurations | ||
| + | management.endpoint.metrics.enabled=true | ||
| + | management.metrics.tags.application=${spring.application.name} | ||
| + | management.endpoints.web.exposure.include=* | ||
| + | management.endpoint.prometheus.enabled=true | ||
| + | management.metrics.export.prometheus.enabled=true | ||
| + | |||
| + | #Key for jwt decryption | ||
| + | com.errigal.userprofile.key=OO8qfrtYIqAX1EhU | ||
| + | </ | ||
| + | |||
| + | === Ansible Playbooks === | ||
| + | < | ||
| + | | ||
| + | </ | ||
| + | |||
| + | === Jenkins Build === | ||
| + | https:// | ||
development/applications/ticketer_light_gateway.1664804477.txt.gz · Last modified: 2022/10/03 14:41 by 10.91.110.100