Skip to content

Commit

Permalink
fix: adjust service filename
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Aug 23, 2024
1 parent 66433a3 commit cf6d37d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
package com.sphereon.oid.fed.server.admin.controllers

import com.sphereon.oid.fed.openapi.models.EntityConfigurationStatement
import com.sphereon.oid.fed.services.EntityStatementService
import org.springframework.web.bind.annotation.*
import com.sphereon.oid.fed.services.EntityConfigurationStatementService
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/accounts/{accountUsername}/entity-statement")
class EntityStatementController {
private val entityStatementService = EntityStatementService()
private val entityConfigurationStatementService = EntityConfigurationStatementService()

@GetMapping
fun getEntityStatement(@PathVariable accountUsername: String): EntityConfigurationStatement {
return entityStatementService.findByUsername(accountUsername)
return entityConfigurationStatementService.findByUsername(accountUsername)
}

@PostMapping
fun publishEntityStatement(@PathVariable accountUsername: String): EntityConfigurationStatement {
return entityStatementService.publishByUsername(accountUsername)
return entityConfigurationStatementService.publishByUsername(accountUsername)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.sphereon.oid.fed.services.extensions.toJwkDTO
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.jsonObject

class EntityStatementService {
class EntityConfigurationStatementService {
private val accountService = AccountService()
private val keyService = KeyService()
private val entityConfigurationStatementQueries = Persistence.entityConfigurationStatementQueries
Expand Down

0 comments on commit cf6d37d

Please sign in to comment.