Skip to content

Commit

Permalink
Legg tilbake eksempel på endepunkt uten annotasjon
Browse files Browse the repository at this point in the history
  • Loading branch information
madsleegiil committed Feb 16, 2022
1 parent aa14ac4 commit be16418
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ This example shows
- First method - An unprotected endpoint. No token is required to use this endpoint.
- Second method - A protected endpoint. This endpoint will require a valid token from one of the configured issuers.
- Third method - A protected endpoint. This endpoint will require a valid token from the "employee" or "manager" issuer.
- Fourth method - A protected endpoint. This endpoint will require a valid token from the "manager" issuer and a claim where key is "acr" and value is "Level4"

- Fourth method - A protected endpoint. This endpoint will require a valid token from the "manager" issuer and a claim where key is "acr" and value is "Level4".
- Fifth method - A non-annotated endpoint. This endpoint will not be accessible from outside the server (will return a 501 NOT_IMPLEMENTED).
```java
@Path("/rest")
public class ProductResource {
Expand Down Expand Up @@ -198,6 +198,12 @@ public class ProductResource {
public void add(String id) {
return service.delete(id);
}

@GET
@PATH("/product/{id}")
public void add(String id) {
return service.get(id);
}
}
```

Expand Down

0 comments on commit be16418

Please sign in to comment.