parameter-parser

The parsers for parsing common parameters in Zalando RESTful API guideline

License

License

Categories

Categories

Net
GroupId

GroupId

net.unit8.apistandard
ArtifactId

ArtifactId

parameter-parser
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

parameter-parser
The parsers for parsing common parameters in Zalando RESTful API guideline

Download parameter-parser

How to add to project

<!-- https://jarcasting.com/artifacts/net.unit8.apistandard/parameter-parser/ -->
<dependency>
    <groupId>net.unit8.apistandard</groupId>
    <artifactId>parameter-parser</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.unit8.apistandard/parameter-parser/
implementation 'net.unit8.apistandard:parameter-parser:0.1.0'
// https://jarcasting.com/artifacts/net.unit8.apistandard/parameter-parser/
implementation ("net.unit8.apistandard:parameter-parser:0.1.0")
'net.unit8.apistandard:parameter-parser:jar:0.1.0'
<dependency org="net.unit8.apistandard" name="parameter-parser" rev="0.1.0">
  <artifact name="parameter-parser" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.unit8.apistandard', module='parameter-parser', version='0.1.0')
)
libraryDependencies += "net.unit8.apistandard" % "parameter-parser" % "0.1.0"
[net.unit8.apistandard/parameter-parser "0.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.antlr : antlr4-runtime jar 4.7.1
org.slf4j : slf4j-api jar 1.7.25

test (4)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.25
org.junit.jupiter : junit-jupiter-api jar 5.3.2
org.junit.jupiter : junit-jupiter-engine jar 5.3.2
org.assertj : assertj-core jar 3.11.1

Project Modules

There are no modules declared in this project.

api-standard

RESTful API toolkit

Parameter parser

<dependencies>
  <dependency>
    <groupId>net.unit8.apistandard</groupId>
    <artifactId>parameter-parser</artifactId>
    <version>0.1.0</version>
  </dependency>
</dependencies>

ResourceFilter

ResourceFilter is a parser for embed and filter parameters. The specification of the parameter can have nested fields.

ResourceFilter resourceFilter = new ResourceFilter();
List<ResourceField> resourceFields = resourceFilter.parse("(a,b,c)");

SortParser

SortParser is a parser for a sort parameter. The prefix + means ascend order and the prefix - means descend order. a default order is descend.

SortParser parser = new SortParser();
List<SortField> sortFields = parser.parse("+a,-b,c");

License

Copyright by kawasima [email protected]. Licensed under Eclipse Public License v2.0.

Versions

Version
0.1.0