Skip to content

Commit

Permalink
release 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
per committed Aug 1, 2022
1 parent 7ee61cf commit 38fdb6b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ var response = restClient.post(
Company c = response.getObject(Company.class);
// Do something with c...
```
A GET request is similar e.g:
```groovy
import static se.alipsa.simplerest.CommonHeaders.*;
import se.alipsa.simplerest.*;
var restClient = new RestClient();
var response = restClient.get(
"http://localhost:8080/companies/company/123/name",
basicAuthHeader("myUserName", "myPassword")
);
String companyName = response.getPayload();
```

## JSON web token example

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>se.alipsa</groupId>
<artifactId>simple-rest</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.3</version>
<packaging>jar</packaging>

<name>Simple Rest</name>
Expand Down Expand Up @@ -78,7 +78,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.8.2</version>
<version>5.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 3 additions & 1 deletion releases.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release history

### ver 1.0.3, in progress
### ver 1.0.3, 2022-08-01
- upgrade test dependencies (junit, jetty).
- add some docs

### ver 1.0.2, 2022-05-25
- Describe how to handle REST/XML, add application/xml to the MediaType
Expand Down

0 comments on commit 38fdb6b

Please sign in to comment.