-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #292 from ulitol97/master
v0.2.2: API Docs with Rho
- Loading branch information
Showing
85 changed files
with
3,115 additions
and
2,908 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
modules/server/src/main/scala/es/weso/rdfshape/server/api/ServiceRouteOperation.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,19 @@ | ||
package es.weso.rdfshape.server.api | ||
|
||
import io.circe.Decoder | ||
|
||
/** This trait defines an operation performed by a route in a service | ||
* and the way to decode the incoming data into the required object | ||
* | ||
* All errors occurred during object instantiation will be mapped to | ||
* DecodingErrors | ||
* | ||
* @tparam C Type into which the client data will be decoded for usage in this route | ||
*/ | ||
trait ServiceRouteOperation[C] { | ||
|
||
/** Decoder in charge of converting the data sent by the client to a | ||
* usable domain structure | ||
*/ | ||
implicit val decoder: Decoder[C] | ||
} |
Oops, something went wrong.