Skip to content

Commit

Permalink
CIRC-1932 include review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-barannyk committed Oct 31, 2023
1 parent 99f8016 commit 6067809
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
File renamed without changes.
16 changes: 8 additions & 8 deletions ramls/pick-slips.raml → ramls/staff-slips.raml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#%RAML 1.0
title: Slips
title: Stuff Slips
version: v0.3
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130

documentation:
- title: API for fetching current pick and search slips
content: <b>API for pick and search slips generation</b>
- title: API for fetching current staff slips
content: <b>API for staff slips generation</b>

types:
pick-slips: !include pick-slips-response.json
stuff-slips: !include staff-slips-response.json

traits:
language: !include raml-util/traits/language.raml
Expand All @@ -22,11 +22,11 @@ resourceTypes:
/{servicePointId}:
type:
collection-get:
exampleCollection: !include examples/pick-slips-response.json
schemaCollection: pick-slips
exampleCollection: !include examples/staff-slips-response.json
schemaCollection: stuff-slips
/search-slips:
/{servicePointId}:
type:
collection-get:
exampleCollection: !include examples/pick-slips-response.json
schemaCollection: pick-slips
exampleCollection: !include examples/staff-slips-response.json
schemaCollection: stuff-slips
4 changes: 2 additions & 2 deletions src/test/java/api/requests/SearchSlipsTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import io.vertx.core.json.JsonObject;

class SearchSlipsTests extends APITests {
private static final String TOTAL_RECORDS = "totalRecords";
private static final String TOTAL_RECORDS_KEY = "totalRecords";
private static final String SEARCH_SLIPS_KEY = "searchSlips";

@Test
Expand All @@ -27,6 +27,6 @@ void responseShouldHaveEmptyListOfSearchSlipsRecords() {
private void assertResponseHasItems(Response response, int itemsCount) {
JsonObject responseJson = response.getJson();
assertThat(responseJson.getJsonArray(SEARCH_SLIPS_KEY).size(), is(itemsCount));
assertThat(responseJson.getInteger(TOTAL_RECORDS), is(itemsCount));
assertThat(responseJson.getInteger(TOTAL_RECORDS_KEY), is(itemsCount));
}
}

0 comments on commit 6067809

Please sign in to comment.