Browse Source

update api endpoint

pull/765/head
谭凌 3 years ago
parent
commit
e7954f63cc
  1. 10
      apps/vue/src/api/messages/notifications.ts
  2. 12
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json
  3. 12
      gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.messages.json

10
apps/vue/src/api/messages/notifications.ts

@ -8,11 +8,11 @@ import {
import { format } from '/@/utils/strings';
enum Api {
GetById = '/api/my-notifilers/{id}',
GetList = '/api/my-notifilers',
GetAssignableNotifiers = '/api/notifilers/assignables',
Read = '/api/my-notifilers/{id}/read',
MarkReadState = '/api/my-notifilers/mark-read-state',
GetById = '/api/notifications/my-notifilers/{id}',
GetList = '/api/notifications/my-notifilers',
GetAssignableNotifiers = '/api/notifications/notifilers/assignables',
Read = '/api/notifications/my-notifilers/{id}/read',
MarkReadState = '/api/notifications/my-notifilers/mark-read-state',
}
export const markReadState = (

12
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.Development.json

@ -1320,7 +1320,7 @@
"Key": "my-subscribes"
},
{
"DownstreamPathTemplate": "/api/notifilers/{everything}",
"DownstreamPathTemplate": "/api/notifications/notifilers/{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -1328,7 +1328,7 @@
"Port": 30020
}
],
"UpstreamPathTemplate": "/api/notifilers/{everything}",
"UpstreamPathTemplate": "/api/notifications/notifilers/{everything}",
"UpstreamHttpMethod": [
"GET",
"POST"
@ -1353,7 +1353,7 @@
}
},
{
"DownstreamPathTemplate": "/api/my-notifilers",
"DownstreamPathTemplate": "/api/notifications/my-notifilers",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -1361,7 +1361,7 @@
"Port": 30020
}
],
"UpstreamPathTemplate": "/api/my-notifilers",
"UpstreamPathTemplate": "/api/notifications/my-notifilers",
"UpstreamHttpMethod": [ "GET" ],
"LoadBalancerOptions": {
"Type": "RoundRobin"
@ -1383,7 +1383,7 @@
}
},
{
"DownstreamPathTemplate": "/api/my-notifilers/{id}",
"DownstreamPathTemplate": "/api/notifications/my-notifilers/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -1391,7 +1391,7 @@
"Port": 30020
}
],
"UpstreamPathTemplate": "/api/my-notifilers/{id}",
"UpstreamPathTemplate": "/api/notifications/my-notifilers/{id}",
"UpstreamHttpMethod": [
"GET",
"POST",

12
gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/src/LINGYUN.MicroService.Internal.ApiGateway/ocelot.messages.json

@ -216,7 +216,7 @@
},
// û֪ͨ
{
"DownstreamPathTemplate": "/api/my-notifilers/assignables",
"DownstreamPathTemplate": "/api/notifications/my-notifilers/assignables",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -224,7 +224,7 @@
"Port": 30020
}
],
"UpstreamPathTemplate": "/api/my-notifilers/assignables",
"UpstreamPathTemplate": "/api/notifications/my-notifilers/assignables",
"UpstreamHttpMethod": [ "GET" ],
"LoadBalancerOptions": {
"Type": "RoundRobin"
@ -249,7 +249,7 @@
},
// û֪ͨ
{
"DownstreamPathTemplate": "/api/my-notifilers",
"DownstreamPathTemplate": "/api/notifications/my-notifilers",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -257,7 +257,7 @@
"Port": 30020
}
],
"UpstreamPathTemplate": "/api/my-notifilers",
"UpstreamPathTemplate": "/api/notifications/my-notifilers",
"UpstreamHttpMethod": [ "GET" ],
"LoadBalancerOptions": {
"Type": "RoundRobin"
@ -279,7 +279,7 @@
}
},
{
"DownstreamPathTemplate": "/api/my-notifilers/{id}",
"DownstreamPathTemplate": "/api/notifications/my-notifilers/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
@ -287,7 +287,7 @@
"Port": 30020
}
],
"UpstreamPathTemplate": "/api/my-notifilers/{id}",
"UpstreamPathTemplate": "/api/notifications/my-notifilers/{id}",
"UpstreamHttpMethod": [
"GET",
"POST",

Loading…
Cancel
Save