Skip to content

Commit

Permalink
Add readme and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Mátyus committed Apr 18, 2024
1 parent e64be05 commit d78786c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## [Unreleased][unreleased]
#### Added
* MultiAuthorizator - for multiple types of authorization for handler

#### Added
* CorsPreflightHandlerInterface - resolve multiple service registered handler error
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,14 @@ services:
- addApi(\Tomaj\NetteApi\EndpointIdentifier('GET', 1, 'users', 'cookie'), Tomaj\NetteApi\Authorization\CookieApiKeyAuthentication('api_key', @staticTokenRepository))
```

### Multiple authentication
You can use multiple types of authorization of API.

```neon
services:
- Tomaj\NetteApi\Authorization\MultiAuthorizator([@Tomaj\NetteApi\Authorization\BearerTokenAuthorization, @Tomaj\NetteApi\Authorization\QueryApiKeyAuthentication])
```

## Rate limit

This library provides simple interface for API rate limit. All you need to do is implement this interface like in example below:
Expand Down

0 comments on commit d78786c

Please sign in to comment.