Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Study ws server v2 #126

Merged
merged 7 commits into from
Aug 14, 2019
Merged

Conversation

junaidnz97
Copy link
Contributor

The purpose of this PR is to add a the V2 endpoint for ArchiveWSServer

@junaidnz97 junaidnz97 changed the title Archive ws server v2 Study ws server v2 Aug 8, 2019
Copy link
Contributor

@jmmut jmmut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, I thought I submitted this review yesterday, sorry

private ObjectMapper objectMapper;

@Before
public void setUp() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to keep this if it's empty

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed :)


@RequestMapping(value = "/", method = RequestMethod.GET)
public ResponseEntity getBrowsableStudies(@RequestParam("species") String species,
@RequestParam("assembly") String assembly,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can either copy the descriptions for these fields from #127 or add them here, whatever you prefer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added :)

@junaidnz97 junaidnz97 closed this Aug 9, 2019
@junaidnz97 junaidnz97 reopened this Aug 9, 2019
Copy link
Contributor

@andresfsilva andresfsilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just some minor comments

.read("$['page']['number']", Integer.class);
Integer size = JsonPath.using(configuration).parse(response.getBody())
.read("$['page']['size']", Integer.class);
Integer totalPages = JsonPath.using(configuration).parse(response.getBody())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totalPages is not being used, can you add the validation for it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 👍

@andresfsilva andresfsilva merged commit c5f02eb into EBIvariation:master Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants