Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- public class DarsController {
- @Autowired
- ParseService parser;
- @Autowired
- DocumentFetcher documentFetcher;
- @RequestMapping("/parse")
- public ProgramRequirements parseDarsFile(@RequestParam(value = "darsURL") String url) throws IOException {
- return parser.parse(documentFetcher.fetch(url));
- }
- }
Add Comment
Please, Sign In to add comment