-
Notifications
You must be signed in to change notification settings - Fork 25
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
[CIRC-1932] Implement search-slips endpoint skeleton #1358
Conversation
import io.vertx.ext.web.RoutingContext; | ||
|
||
public class SearchSlipsResource extends SlipsResource { | ||
private static final String SEARCH_SLIPS_KEY = "searchSlips"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This collection name can be an instance variable injected via constructor
ramls/pick-slips.raml
Outdated
version: v0.3 | ||
protocols: [ HTTP, HTTPS ] | ||
baseUri: http://localhost:9130 | ||
|
||
documentation: | ||
- title: API for fetching current pick slips | ||
content: <b>API for pick slips generation</b> | ||
- title: API for fetching current pick and search slips |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Collectively they are called "staff slips"
import io.vertx.core.json.JsonObject; | ||
|
||
class SearchSlipsTests extends APITests { | ||
private static final String TOTAL_RECORDS = "totalRecords"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static final String TOTAL_RECORDS = "totalRecords"; | |
private static final String TOTAL_RECORDS_KEY = "totalRecords"; |
Kudos, SonarCloud Quality Gate passed! |
Purpose
Create a new (dummy) endpoint:
GET /circulation/search-slips/{servicePointId} that should return an empty result:
{
"searchSlips" : [ ],
"totalRecords" : 0
}
Resolves: CIRC-1932
Approach