()
| 26 | } |
| 27 | |
| 28 | func (req *applicationAPIRequirement) Execute() error { |
| 29 | var apiErr error |
| 30 | req.application, apiErr = req.appRepo.Read(req.name) |
| 31 | |
| 32 | if apiErr != nil { |
| 33 | return apiErr |
| 34 | } |
| 35 | |
| 36 | return nil |
| 37 | } |
| 38 | |
| 39 | func (req *applicationAPIRequirement) GetApplication() models.Application { |
| 40 | return req.application |