Skip to content

Commit

Permalink
PIN-4129 Rid of IpAddress header (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: nttdata-rtorsoli <riccardo.torsoli@emeal.nttdata.com>
  • Loading branch information
nttdata-rtorsoli and nttdata-rtorsoli authored Oct 31, 2023
1 parent 0beaa75 commit e0f8a89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/main/resources/interface-specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ paths:
'/attributes':
parameters:
- $ref: '#/components/parameters/CorrelationIdHeader'
- $ref: '#/components/parameters/IpAddress'
post:
summary: Creates attribute
tags:
Expand Down Expand Up @@ -103,7 +102,6 @@ paths:
description: 'returns the attribute in the registry corresponding to name, if any.'
parameters:
- $ref: '#/components/parameters/CorrelationIdHeader'
- $ref: '#/components/parameters/IpAddress'
- schema:
type: string
name: name
Expand Down Expand Up @@ -132,7 +130,6 @@ paths:
description: 'returns the attribute in the registry corresponding to origin and code, if any.'
parameters:
- $ref: '#/components/parameters/CorrelationIdHeader'
- $ref: '#/components/parameters/IpAddress'
- schema:
type: string
name: origin
Expand All @@ -148,7 +145,6 @@ paths:
'/attributes/{attributeId}':
parameters:
- $ref: '#/components/parameters/CorrelationIdHeader'
- $ref: '#/components/parameters/IpAddress'
- schema:
type: string
format: uuid
Expand Down Expand Up @@ -197,11 +193,6 @@ components:
required: true
schema:
type: string
IpAddress:
in: header
name: X-Forwarded-For
schema:
type: string
schemas:
Problem:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ trait AkkaTestSuite extends ScalaCheckSuite {

result
.map(_ => StatusCodes.NoContent)
.recover (_ => StatusCodes.InternalServerError)
.recover(_ => StatusCodes.InternalServerError)
}

private def commander(id: String)(implicit actorSystem: ActorSystem[_]): EntityRef[Command] = {
Expand Down

0 comments on commit e0f8a89

Please sign in to comment.