Skip to content
Snippets Groups Projects
Commit 66c5f988 authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

comment updates

parent 70920e0e
No related branches found
No related tags found
No related merge requests found
...@@ -11,16 +11,29 @@ use Dbp\Relay\CoreBundle\Pagination\Paginator; ...@@ -11,16 +11,29 @@ use Dbp\Relay\CoreBundle\Pagination\Paginator;
interface CourseProviderInterface interface CourseProviderInterface
{ {
/** /**
* @param array $options Available options:
* * 'lang' ('de' or 'en')
* * LocalData::INCLUDE_PARAMETER_NAME
*
* @throws ApiError * @throws ApiError
*/ */
public function getCourseById(string $identifier, array $options = []): Course; public function getCourseById(string $identifier, array $options = []): Course;
/** /**
* @param array $options Available options:
* * 'lang' ('de' or 'en')
* * Course::SEARCH_PARAMETER_NAME (partial, case-insensitive text search on 'name' attribute)
* * LocalData::INCLUDE_PARAMETER_NAME
* * LocalData::QUERY_PARAMETER_NAME
*
* @throws ApiError * @throws ApiError
*/ */
public function getCourses(array $options = []): Paginator; public function getCourses(array $options = []): Paginator;
/** /**
* @param array $options Available options:
* * 'lang' ('de' or 'en')
*
* @throws ApiError * @throws ApiError
*/ */
public function getAttendeesByCourse(string $courseId, array $options = []): Paginator; public function getAttendeesByCourse(string $courseId, array $options = []): Paginator;
......
...@@ -18,7 +18,7 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait; ...@@ -18,7 +18,7 @@ use Dbp\Relay\CoreBundle\LocalData\LocalDataAwareTrait;
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"BaseCourse"}, * "tags" = {"BaseCourse"},
* "parameters" = { * "parameters" = {
* {"name" = "search", "in" = "query", "description" = "Search for a course", "type" = "string", "required" = false}, * {"name" = "search", "in" = "query", "description" = "Search filter (partial, case-insensitive text search on 'name' attribute)", "type" = "string", "required" = false},
* {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"}, * {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"},
* {"name" = "queryLocal", "in" = "query", "description" = "Local query parameters to apply", "type" = "string"}, * {"name" = "queryLocal", "in" = "query", "description" = "Local query parameters to apply", "type" = "string"},
* {"name" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "BaseCourse.code,BaseCourse.numberOfCredits"}, * {"name" = "includeLocal", "in" = "query", "description" = "Local data attributes to include", "type" = "string", "example" = "BaseCourse.code,BaseCourse.numberOfCredits"},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment