-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prism-agent): add universal-resolver compatible endpoint (#455)
* feat(prism-agent): add new endpoint def * new uni resolver endpoknt * add buildResolutionResp to DIDApiServiceImpl * add contentType to ResolutionMetadata * pr cleanup * docs: improve OAS doc on the response * docs: correct the content-type header in OAS * fix(prism-agent): unify resolution endpoint * fix e2e tests
- Loading branch information
Showing
14 changed files
with
295 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ervice/server/src/main/scala/io/iohk/atala/agent/server/http/model/CustomMediaTypes.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.iohk.atala.agent.server.http.model | ||
|
||
import akka.http.scaladsl.model.MediaType | ||
import akka.http.scaladsl.model.HttpCharsets | ||
|
||
object CustomMediaTypes { | ||
|
||
val `application/did+ld+json`: MediaType.WithFixedCharset = | ||
MediaType.customWithFixedCharset("application", "did+ld+json", HttpCharsets.`UTF-8`) | ||
|
||
val `application/ld+json;did-resolution`: MediaType.WithFixedCharset = MediaType.customWithFixedCharset( | ||
"application", | ||
"ld+json", | ||
HttpCharsets.`UTF-8`, | ||
params = Map("profile" -> "https://w3id.org/did-resolution") | ||
) | ||
|
||
} |
Oops, something went wrong.