Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dumas committed Aug 4, 2023
1 parent 0aea61d commit 800ba2b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import ch.epfl.bluebrain.nexus.delta.sdk.multifetch.MultiFetch
import ch.epfl.bluebrain.nexus.delta.sdk.multifetch.model.MultiFetchRequest
import monix.execution.Scheduler

/**
* Route allowing to fetch multiple resources in a single request
*/
class MultiFetchRoutes(
identities: Identities,
aclCheck: AclCheck,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import ch.epfl.bluebrain.nexus.delta.sdk.multifetch.model.{MultiFetchRequest, Mu
import ch.epfl.bluebrain.nexus.delta.sdk.permissions.Permissions.resources
import monix.bio.UIO

/**
* Allows to fetch multiple resources of different types in one request.
*
* The response includes a resources array that contains the resources in the order specified in the request. If there
* is a failure getting a particular resource, the error is included in place of the resource.
*/
trait MultiFetch {

def apply(request: MultiFetchRequest)(implicit caller: Caller): UIO[MultiFetchResponse]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ import io.circe.Decoder

import scala.annotation.nowarn

/**
* Request to get multiple resources
* @param format
* the output format for these resources
* @param resources
* the list of resources
*/
final case class MultiFetchRequest(format: ResourceRepresentation, resources: NonEmptyList[Input]) {}

object MultiFetchRequest {
Expand Down

0 comments on commit 800ba2b

Please sign in to comment.