{
    "openapi":"3.0.0",
    "info":{
        "title":"OAA-Device Runtime Support Service (DRSS)",
        "description":"OAA-Device Runtime Support Service (DRSS) will provide the APIs to Device Authentication components/services to facilitate User Login and Single Sign On capabilities",
        "contact":{
            "email":"ngssodev_us_grp@oracle.com"
        },
        "license":{
            "name":"Apache 2.0",
            "url":"http://www.apache.org/licenses/LICENSE-2.0.html"
        },
        "version":"2025.04.10",
        "x-summary":"OAA-Device Runtime Support Service (DRSS) will provide the APIs to Device Authentication components/services to facilitate User Login and Single Sign On capabilities"
    },
    "tags":[
        {
            "name":"Themes Management",
            "description":"APIs required for Retrieval/Update/Delete themes for the given locale.",
            "externalDocs":{
                "description":"Find out more",
                "url":"http://oracle.com/oaa"
            }
        }
    ],
    "paths":{
        "/oaa-drss/v1/themes/locales":{
            "get":{
                "tags":[
                    "Themes Management"
                ],
                "summary":"Get all supported locales",
                "description":"Retrieves all active locales for the OUA",
                "operationId":"getLocales",
                "responses":{
                    "200":{
                        "description":"A list of supported locales",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "type":"array",
                                    "items":{
                                        "type":"string"
                                    }
                                }
                            },
                            "application/xml":{
                                "schema":{
                                    "type":"array",
                                    "items":{
                                        "type":"string"
                                    }
                                }
                            }
                        }
                    },
                    "401":{
                        "description":"Unauthorized Access"
                    },
                    "500":{
                        "description":"Internal server error"
                    }
                },
                "x-internal-id":"oaa-drss-v1-themes-locales-get",
                "x-filename-id":"oaa-drss-v1-themes-locales-get"
            }
        },
        "/oaa-drss/v1/themes/{locale}":{
            "get":{
                "tags":[
                    "Themes Management"
                ],
                "summary":"Get theme properties for a locale",
                "description":"Retrieves all active properties for a locale",
                "operationId":"getThemeForLocale",
                "parameters":[
                    {
                        "name":"locale",
                        "in":"path",
                        "description":"The locale for the theme",
                        "required":true,
                        "schema":{
                            "type":"string"
                        }
                    }
                ],
                "responses":{
                    "200":{
                        "description":"Theme properties for the locale",
                        "content":{
                            "application/json":{
                                "schema":{
                                    "$ref":"#/components/schemas/ThemeProperties"
                                }
                            },
                            "application/xml":{
                                "schema":{
                                    "$ref":"#/components/schemas/ThemeProperties"
                                }
                            }
                        }
                    },
                    "401":{
                        "description":"Unauthorized Access"
                    },
                    "404":{
                        "description":"Theme not found for the given locale"
                    },
                    "500":{
                        "description":"Internal server error"
                    }
                },
                "x-internal-id":"oaa-drss-v1-themes-{locale}-get",
                "x-filename-id":"oaa-drss-v1-themes-locale-get"
            },
            "put":{
                "tags":[
                    "Themes Management"
                ],
                "summary":"Create/Update theme properties for a locale",
                "description":"Create or Update theme properties for a locale. Any properties that don't exist are created.",
                "operationId":"updateThemeForLocale",
                "parameters":[
                    {
                        "name":"locale",
                        "in":"path",
                        "description":"The locale for the theme",
                        "required":true,
                        "schema":{
                            "type":"string"
                        }
                    }
                ],
                "requestBody":{
                    "$ref":"#/components/requestBodies/ThemeUpdateRequest"
                },
                "responses":{
                    "204":{
                        "description":"Updated theme properties for the given locale"
                    },
                    "400":{
                        "description":"Bad Request - Invalid input data or locale"
                    },
                    "401":{
                        "description":"Unauthorized Access"
                    },
                    "404":{
                        "description":"Theme not found for the given locale"
                    },
                    "500":{
                        "description":"Internal server error"
                    }
                },
                "x-internal-id":"oaa-drss-v1-themes-{locale}-put",
                "x-filename-id":"oaa-drss-v1-themes-locale-put"
            },
            "delete":{
                "tags":[
                    "Themes Management"
                ],
                "summary":"Delete theme for a locale",
                "description":"Delete all the properties for the given locale",
                "operationId":"deleteThemeForLocale",
                "parameters":[
                    {
                        "name":"locale",
                        "in":"path",
                        "description":"The locale for the theme to delete",
                        "required":true,
                        "schema":{
                            "type":"string"
                        }
                    }
                ],
                "responses":{
                    "204":{
                        "description":"Theme deleted successfully"
                    },
                    "401":{
                        "description":"Unauthorized Access"
                    },
                    "404":{
                        "description":"Theme not found for the given locale"
                    },
                    "500":{
                        "description":"Internal server error"
                    }
                },
                "x-internal-id":"oaa-drss-v1-themes-{locale}-delete",
                "x-filename-id":"oaa-drss-v1-themes-locale-delete"
            }
        }
    },
    "components":{
        "schemas":{
            "ThemeProperties":{
                "type":"object",
                "description":"Key-value pairs of theme properties",
                "properties":{
                    "CPFT_COMMAND_LINK_LOGIN_WITH_PASSWORD":{
                        "type":"string",
                        "example":"Login with password"
                    },
                    "CPFT_COMMAND_LINK_FORGOT_PASSWORD":{
                        "type":"string",
                        "example":"Forgot password"
                    }
                }
            },
            "ThemeUpdateRequest":{
                "type":"object",
                "properties":{
                    "status":{
                        "type":"integer",
                        "description":"Status of the theme properties (1 for active, 0 for inactive)",
                        "enum":[
                            0,
                            1
                        ]
                    },
                    "properties":{
                        "$ref":"#/components/schemas/ThemeProperties"
                    }
                },
                "required":[
                    "status",
                    "properties"
                ]
            }
        },
        "requestBodies":{
            "ThemeUpdateRequest":{
                "required":true,
                "content":{
                    "application/json":{
                        "schema":{
                            "$ref":"#/components/schemas/ThemeUpdateRequest"
                        }
                    },
                    "application/xml":{
                        "schema":{
                            "$ref":"#/components/schemas/ThemeUpdateRequest"
                        }
                    }
                }
            }
        }
    }
}