practicekea_backend/gateway/ocelot.json

114 lines
3.2 KiB
JSON
Raw Permalink Normal View History

2024-12-02 13:24:34 +00:00
{
"Routes": [
//====================================================
// APIS FOR AN ADMIN
//====================================================
{
"DownstreamPathTemplate": "/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "api-admin.practicekea.com",
2024-12-02 13:24:34 +00:00
"Port": 80
}
],
"UpstreamPathTemplate": "/api-admin/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete", "Options" ],
"Priority": 1,
"<22>AuthenticationOptions<6E>": {
"<22>AuthenticationProviderKey<65>": "IdentityApiKey",
"<22>AllowedScopes<65>": []
2024-12-02 13:24:34 +00:00
}
},
//====================================================
// APIS FOR AN INSTITUTE
//====================================================
{
"DownstreamPathTemplate": "/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "api-institute.practicekea.com",
2024-12-02 13:24:34 +00:00
"Port": 80
}
],
"UpstreamPathTemplate": "/api-institute/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete", "Options" ],
"Priority": 1
},
//====================================================
// APIS FOR TEACHER
//====================================================
{
"DownstreamPathTemplate": "/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "api-teacher.practicekea.com",
2024-12-02 13:24:34 +00:00
"Port": 80
}
],
"UpstreamPathTemplate": "/api-teacher/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete", "Options" ],
"Priority": 1
},
//====================================================
// APIS FOR AN USERS
//====================================================
{
"DownstreamPathTemplate": "/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "api-user.practicekea.com",
2024-12-02 13:24:34 +00:00
"Port": 80
}
],
"UpstreamPathTemplate": "/api-user/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete", "Options" ],
"Priority": 1
},
//====================================================
// APIS FOR S3BUCKET
//====================================================
{
"DownstreamPathTemplate": "/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "api-bucket.practicekea.com",
2024-12-02 13:24:34 +00:00
"Port": 80
}
],
"UpstreamPathTemplate": "/api-bucket/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete", "Options" ],
"Priority": 1
},
//====================================================
// APIS FOR STUDENT
//====================================================
{
"DownstreamPathTemplate": "/{url}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "api-student.practicekea.com",
2024-12-02 13:24:34 +00:00
"Port": 80
}
],
"UpstreamPathTemplate": "/api-student/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete", "Options" ],
"Priority": 1
}
],
"GlobalConfiguration": {
"BaseUrl": "http://api.practicekea.com"
2024-12-02 13:24:34 +00:00
}
}