test_class.declarator: ocdsController
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private OcdsController ocdsController;
test_class.type: OcdsController
test_class.var_name: ocdsController
test_class.file: web/src/test/java/org/devgateway/ocds/web/rest/controller/OcdsControllerTest.java
test_class.identifier: OcdsControllerTest
test_class.superclass: extends AbstractEndPointControllerTest
test_case.body: @Test
      public void ocdsByOcid() throws Exception {
          final Release release = ocdsController.ocdsByOcid("ocds-endpoint-001");
  
          Assert.assertNotNull(release);
          Assert.assertEquals("ocds-endpoint-001-tender", release.getTender().getId());
      }
test_case.class_method_signature: OcdsControllerTest.ocdsByOcid()
test_case.full_signature: @Test public void ocdsByOcid()
test_case.identifier: ocdsByOcid
test_case.invocations: ocdsByOcid assertNotNull assertEquals getId getTender
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void ocdsByOcid()
focal_class.declarator: SERVER_DOMAIN = "http://ocexplorer.dgstg.org"
focal_class.modifier: private static final
focal_class.original_string: private static final String SERVER_DOMAIN = "http://ocexplorer.dgstg.org";
focal_class.type: String
focal_class.var_name: SERVER_DOMAIN
focal_class.declarator: releaseRepository
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ReleaseRepository releaseRepository;
focal_class.type: ReleaseRepository
focal_class.var_name: releaseRepository
focal_class.declarator: flaggedReleaseRepository
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private FlaggedReleaseRepository flaggedReleaseRepository;
focal_class.type: FlaggedReleaseRepository
focal_class.var_name: flaggedReleaseRepository
focal_class.file: web/src/main/java/org/devgateway/ocds/web/rest/controller/OcdsController.java
focal_class.identifier: OcdsController
focal_class.class_method_signature: OcdsController.ocdsByProjectId(@PathVariable final String projectId)
focal_class.full_signature: @ApiOperation(value = "Returns a release entity for the given project id. " + "The project id is read from planning.budget.projectID") @RequestMapping(value = "/api/ocds/release/budgetProjectId/{projectId:^[a-zA-Z0-9]*$}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public Release ocdsByProjectId(@PathVariable final String projectId)
focal_class.identifier: ocdsByProjectId
focal_class.modifiers: @ApiOperation(value = "Returns a release entity for the given project id. " + "The project id is read from planning.budget.projectID") @RequestMapping(value = "/api/ocds/release/budgetProjectId/{projectId:^[a-zA-Z0-9]*$}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (@PathVariable final String projectId)
focal_class.return: Release
focal_class.signature: Release ocdsByProjectId(@PathVariable final String projectId)
focal_class.class_method_signature: OcdsController.ocdsByOcid(@PathVariable final String ocid)
focal_class.full_signature: @ApiOperation(value = "Returns a release entity for the given open contracting id (OCID).") @RequestMapping(value = "/api/ocds/release/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public Release ocdsByOcid(@PathVariable final String ocid)
focal_class.identifier: ocdsByOcid
focal_class.modifiers: @ApiOperation(value = "Returns a release entity for the given open contracting id (OCID).") @RequestMapping(value = "/api/ocds/release/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (@PathVariable final String ocid)
focal_class.return: Release
focal_class.signature: Release ocdsByOcid(@PathVariable final String ocid)
focal_class.class_method_signature: OcdsController.ocdsPackageByOcid(@PathVariable final String ocid)
focal_class.full_signature: @ApiOperation(value = "Returns a release package for the given open contracting id (OCID)." + "This will contain the OCDS package information (metadata about publisher) plus the release itself.") @RequestMapping(value = "/api/ocds/package/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public ReleasePackage ocdsPackageByOcid(@PathVariable final String ocid)
focal_class.identifier: ocdsPackageByOcid
focal_class.modifiers: @ApiOperation(value = "Returns a release package for the given open contracting id (OCID)." + "This will contain the OCDS package information (metadata about publisher) plus the release itself.") @RequestMapping(value = "/api/ocds/package/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (@PathVariable final String ocid)
focal_class.return: ReleasePackage
focal_class.signature: ReleasePackage ocdsPackageByOcid(@PathVariable final String ocid)
focal_class.class_method_signature: OcdsController.createReleasePackage(final Release release)
focal_class.full_signature: public ReleasePackage createReleasePackage(final Release release)
focal_class.identifier: createReleasePackage
focal_class.modifiers: public
focal_class.parameters: (final Release release)
focal_class.return: ReleasePackage
focal_class.signature: ReleasePackage createReleasePackage(final Release release)
focal_class.class_method_signature: OcdsController.packagedReleaseByProjectId(@PathVariable final String projectId)
focal_class.full_signature: @ApiOperation(value = "Returns a release package for the given project id. " + "The project id is read from planning.budget.projectID." + "This will contain the OCDS package information (metadata about publisher) plus the release itself.") @RequestMapping(value = "/api/ocds/package/budgetProjectId/{projectId:^[a-zA-Z0-9]*$}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public ReleasePackage packagedReleaseByProjectId(@PathVariable final String projectId)
focal_class.identifier: packagedReleaseByProjectId
focal_class.modifiers: @ApiOperation(value = "Returns a release package for the given project id. " + "The project id is read from planning.budget.projectID." + "This will contain the OCDS package information (metadata about publisher) plus the release itself.") @RequestMapping(value = "/api/ocds/package/budgetProjectId/{projectId:^[a-zA-Z0-9]*$}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (@PathVariable final String projectId)
focal_class.return: ReleasePackage
focal_class.signature: ReleasePackage packagedReleaseByProjectId(@PathVariable final String projectId)
focal_class.class_method_signature: OcdsController.ocdsReleases(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.full_signature: @ApiOperation(value = "Resturns all available releases, filtered by the given criteria.") @RequestMapping(value = "/api/ocds/release/all", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public List<Release> ocdsReleases(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.identifier: ocdsReleases
focal_class.modifiers: @ApiOperation(value = "Resturns all available releases, filtered by the given criteria.") @RequestMapping(value = "/api/ocds/release/all", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.return: List<Release>
focal_class.signature: List<Release> ocdsReleases(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.class_method_signature: OcdsController.ocdsReleasesCount(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.full_signature: @ApiOperation(value = "Counts releases, filter by given criteria") @RequestMapping(value = "/api/ocds/release/count", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) @Cacheable public Long ocdsReleasesCount(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.identifier: ocdsReleasesCount
focal_class.modifiers: @ApiOperation(value = "Counts releases, filter by given criteria") @RequestMapping(value = "/api/ocds/release/count", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) @Cacheable public
focal_class.parameters: (@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.return: Long
focal_class.signature: Long ocdsReleasesCount(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.class_method_signature: OcdsController.flaggedOcdsReleases(
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.full_signature: @ApiOperation(value = "Resturns all available releases with flags, filtered by the given criteria.") @RequestMapping(value = "/api/flaggedRelease/all", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Internal.class) public List<FlaggedRelease> flaggedOcdsReleases(
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.identifier: flaggedOcdsReleases
focal_class.modifiers: @ApiOperation(value = "Resturns all available releases with flags, filtered by the given criteria.") @RequestMapping(value = "/api/flaggedRelease/all", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Internal.class) public
focal_class.parameters: (
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.return: List<FlaggedRelease>
focal_class.signature: List<FlaggedRelease> flaggedOcdsReleases(
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.class_method_signature: OcdsController.countFlaggedOcdsReleases(
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.full_signature: @ApiOperation(value = "Counts all available releases with flags, filtered by the given criteria.") @RequestMapping(value = "/api/flaggedRelease/count", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Internal.class) @Cacheable public Long countFlaggedOcdsReleases(
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.identifier: countFlaggedOcdsReleases
focal_class.modifiers: @ApiOperation(value = "Counts all available releases with flags, filtered by the given criteria.") @RequestMapping(value = "/api/flaggedRelease/count", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Internal.class) @Cacheable public
focal_class.parameters: (
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.return: Long
focal_class.signature: Long countFlaggedOcdsReleases(
              @ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.class_method_signature: OcdsController.flaggedReleaseByOcid(@PathVariable final String ocid)
focal_class.full_signature: @ApiOperation(value = "Returns a release entity for the given open contracting id (OCID).") @RequestMapping(value = "/api/flaggedRelease/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Internal.class) public FlaggedRelease flaggedReleaseByOcid(@PathVariable final String ocid)
focal_class.identifier: flaggedReleaseByOcid
focal_class.modifiers: @ApiOperation(value = "Returns a release entity for the given open contracting id (OCID).") @RequestMapping(value = "/api/flaggedRelease/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Internal.class) public
focal_class.parameters: (@PathVariable final String ocid)
focal_class.return: FlaggedRelease
focal_class.signature: FlaggedRelease flaggedReleaseByOcid(@PathVariable final String ocid)
focal_class.class_method_signature: OcdsController.ocdsPackages(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.full_signature: @ApiOperation(value = "Returns all available packages, filtered by the given criteria." + "This will contain the OCDS package information (metadata about publisher) plus the release itself.") @RequestMapping(value = "/api/ocds/package/all", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public List<ReleasePackage> ocdsPackages(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.identifier: ocdsPackages
focal_class.modifiers: @ApiOperation(value = "Returns all available packages, filtered by the given criteria." + "This will contain the OCDS package information (metadata about publisher) plus the release itself.") @RequestMapping(value = "/api/ocds/package/all", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_class.parameters: (@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.return: List<ReleasePackage>
focal_class.signature: List<ReleasePackage> ocdsPackages(@ModelAttribute @Valid final YearFilterPagingRequest releaseRequest)
focal_class.superclass: extends GenericOCDSController
focal_method.body: @ApiOperation(value = "Returns a release entity for the given open contracting id (OCID).")
      @RequestMapping(value = "/api/ocds/release/ocid/{ocid}",
              method = {RequestMethod.POST, RequestMethod.GET},
              produces = "application/json")
      @JsonView(Views.Public.class)
      public Release ocdsByOcid(@PathVariable final String ocid) {
  
          Release release = releaseRepository.findByOcid(ocid);
          return release;
      }
focal_method.class_method_signature: OcdsController.ocdsByOcid(@PathVariable final String ocid)
focal_method.full_signature: @ApiOperation(value = "Returns a release entity for the given open contracting id (OCID).") @RequestMapping(value = "/api/ocds/release/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public Release ocdsByOcid(@PathVariable final String ocid)
focal_method.identifier: ocdsByOcid
focal_method.invocations: findByOcid
focal_method.modifiers: @ApiOperation(value = "Returns a release entity for the given open contracting id (OCID).") @RequestMapping(value = "/api/ocds/release/ocid/{ocid}", method = {RequestMethod.POST, RequestMethod.GET}, produces = "application/json") @JsonView(Views.Public.class) public
focal_method.parameters: (@PathVariable final String ocid)
focal_method.return: Release
focal_method.signature: Release ocdsByOcid(@PathVariable final String ocid)