Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .img/ewm-main-event-service.png
Binary file not shown.
Binary file removed .img/ewm-main-rating-service.png
Binary file not shown.
Binary file removed .img/ewm-main-request-service.png
Binary file not shown.
Binary file removed .img/ewm-main-user-service.png
Binary file not shown.
Binary file removed .img/ewm-stats-stats-server.png
Binary file not shown.
Binary file removed .img/external-api-2.png
Binary file not shown.
Binary file removed .img/external-api.png
Binary file not shown.
Binary file removed .img/internal-api.png
Binary file not shown.
Binary file removed .img/microservices.png
Binary file not shown.
4 changes: 4 additions & 0 deletions .img/microservices.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .img/similarity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
363 changes: 161 additions & 202 deletions .postman/ewm-main-service.json

Large diffs are not rendered by default.

1,057 changes: 0 additions & 1,057 deletions .postman/ewm-rating-service.json

This file was deleted.

1,027 changes: 0 additions & 1,027 deletions .postman/ewm-stat-service.json

This file was deleted.

6 changes: 0 additions & 6 deletions core/aggregation-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
<packaging>jar</packaging>

<dependencies>
<dependency>
<groupId>ru.practicum</groupId>
<artifactId>stat-dto</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
* <code>boolean requestModeration</code><br/>
* <code>EventState state</code><br/>
* <code>String title</code><br/>
* <code>Long views</code><br/>
* <code>long rate</code>
* <code>double rating</code>
*/
@Builder
public record EventFullDto(
Expand Down Expand Up @@ -68,8 +67,6 @@ public record EventFullDto(
@NotBlank
String title,

Long views,

long rate
double rating
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
* {@link UserShortDto} initiator<br/>
* <code>boolean</code> paid<br/>
* {@link String} title<br/>
* <code>long</code> views<br/>
* <code>long</code> rate
* <code>double</code> rateing
*/
@Builder
public record EventShortDto(
Expand All @@ -29,7 +28,6 @@ public record EventShortDto(
UserShortDto initiator,
boolean paid,
String title,
long views,
long rate
double rating
) {
}

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions core/event-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
<dependencies>
<dependency>
<groupId>ru.practicum</groupId>
<artifactId>stat-dto</artifactId>
<artifactId>aggregation-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ru.practicum</groupId>
<artifactId>aggregation-api</artifactId>
<artifactId>stats-client</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,22 @@
import org.springframework.context.annotation.ComponentScan;
import ru.practicum.aggregation.client.event.EventClient;
import ru.practicum.aggregation.client.request.RequestClient;
import ru.practicum.aggregation.client.stats.StatsClient;
import ru.practicum.aggregation.client.user.UserClient;
import ru.practicum.aggregation.config.JacksonConfiguration;

@SpringBootApplication
@EnableFeignClients(clients = {
UserClient.class,
EventClient.class,
RequestClient.class,
StatsClient.class
RequestClient.class
})
@ComponentScan(value = {
"ru.practicum.ewm.events",
"ru.practicum.aggregation.config",
"ru.practicum.aggregation.client",
"ru.practicum.aggregation.error",
"ru.practicum.aggregation.repository"
"ru.practicum.aggregation.repository",
"ru.practicum.stats.client.grpc"
})
@ConfigurationPropertiesScan(basePackageClasses = JacksonConfiguration.class)
public class EventServiceApp {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import ru.practicum.aggregation.dto.event.output.EventFullDto;
import ru.practicum.aggregation.dto.event.output.EventShortDto;
import ru.practicum.aggregation.model.data.FreeGetData;
import ru.practicum.aggregation.repository.StatsFeignRepository;
import ru.practicum.ewm.events.service.event.EventService;

import java.time.LocalDateTime;
Expand All @@ -25,7 +24,6 @@
public class FreeEventController {

EventService eventService;
StatsFeignRepository statsFeignRepository;

/**
* Обратите внимание:<br/>
Expand Down Expand Up @@ -90,10 +88,7 @@ public List<EventShortDto> getFreeEvents(
Получение событий с возможностью фильтрации
{} {}""", request.getMethod(), request.getRequestURI());

var result = eventService.getFreeEvents(freeGetData, request);
statsFeignRepository.sendHitRequest(request);

return result;
return eventService.getFreeEvents(freeGetData, request);
}

@GetMapping(value = "/{eventId}")
Expand All @@ -105,10 +100,7 @@ public EventFullDto getFreeEventById(@PathVariable Long eventId,
Получение подробной информации об опубликованном событии по его идентификатору.
{} {}""", request.getMethod(), request.getRequestURI());

var result = eventService.getFreeEventById(eventId, request);
statsFeignRepository.sendHitRequest(request);

return result;
return eventService.getFreeEventById(eventId, request);
}

}

This file was deleted.

Loading
Loading