Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Beskrivning

API:t visar avtal kopplade till en anläggning.

Livscykelstatus

Under design

Lösningsbeskrivning

<Infoga en Gliffy-bild som visuellt beskriver lösningen>
Gliffy
imageAttachmentIdatt990740483
macroIdb61922d0-c069-492b-a52c-b83517035d6d
baseUrlhttps://sundsvall.atlassian.net/wiki
nameOverview
diagramAttachmentIdatt991166465
containerId873299969
timestamp1649834405454

Hantering av personuppgifter

<Vilka Inga personuppgifter hanteras och varför?>i tjänsten.

API specifikation

openapi: 3.0.1 info: title: API-Agreement contact: {} version: "0.1" servers: - url: api0.1 tags: - name: Agreement description: Agreement resources paths: /agreements/{category}/{facilityId}: get: tags: - Agreement summary: Get agreements by category and facility-id operationId: getAgreementsByCategoryAndFacilityId parameters: - name: category in: path description: Agreement category required: true schema: type: string description: Category model enum: - COMMUNICATION - DISTRICT_HEATING - DISTRICT_COOLING - ELECTRICITY - WASTE_MANAGEMENT - WATER example: ELECTRICITY - name: facilityId in: path description: Id for the facility required: true schema: type: string example: 1471222 responses: "404": description: Not found content: application/json: schema: $ref: '#/components/schemas/Problem' application/problem+json: schema: $ref: '#/components/schemas/Problem' "200": description: Successful operation content: application/json: schema: $ref: '#/components/schemas/AgreementResponse' application/problem+json: schema: $ref: '#/components/schemas/AgreementResponse' "500": description: Internal Server error content: application/json: schema: $ref: '#/components/schemas/Problem' application/problem+json: schema: $ref: '#/components/schemas/Problem' "400": description: Bad request content: application/json: schema: $ref: '#/components/schemas/Problem' application/problem+json: schema: $ref: '#/components/schemas/Problem' security: - ApiKeyAuth: [] components: schemas: Problem: type: object properties: instance: type: string format: uri type: type: string format: uri parameters: type: object additionalProperties: type: object status: $ref: '#/components/schemas/StatusType' title: type: string detail: type: string StatusType: type: object properties: statusCode: type: integer format: int32 reasonPhrase: type: string Agreement: type: object properties: customerId: type: string description: Customer identifier at the supplier of the agreement readOnly: true example: "81471222" billingId: type: string description: Billing identifier readOnly: true example: "111222333" agreementId: type: string description: Agreement identifier readOnly: true example: 223344-A mainAgreement: type: boolean description: Signal indicating whether the agreement is the main agreement or not readOnly: true example: true binding: type: boolean description: Signal indicating whether the agreement has a binding period or not readOnly: true example: true bindingRule: type: string description: Description of the binding rule in cases where the agreement has a binding period nullable: true readOnly: true example: 12 mån bindning fromDate: type: string description: Start date of the agreement format: date readOnly: true example: 2022-01-01 toDate: type: string description: End date of the agreement format: date readOnly: true example: 2022-12-31 description: Agreement model AgreementResponse: type: object properties: agreements: type: array items: $ref: '#/components/schemas/Agreement' description: Agreement response model securitySchemes: ApiKeyAuth: type: apiKey in: header name: apikey
Expandswagger-ui
titleAPI-nyckel för sandbox-miljö. Klicka på "Authorize" nedan och ange denna nyckel för att testa API:et

eyJ4NXQiOiJOVGRtWmpNNFpEazNOalkwWXpjNU1tWm1PRGd3TVRFM01XWXdOREU1TVdSbFpEZzROemM0WkE9PSIsImtpZCI6ImdhdGV3YXlfY2VydGlmaWNhdGVfYWxpYXMiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJhZG1pbkBjYXJib24uc3VwZXIiLCJhcHBsaWNhdGlvbiI6eyJvd25lciI6ImFkbWluIiwidGllclF1b3RhVHlwZSI6bnVsbCwidGllciI6IjUwUGVyTWluIiwibmFtZSI6IkNvbmZsdWVuY2UiLCJpZCI6NDksInV1aWQiOiI5MTc3ZGYxZC1hMDQwLTQwMTYtOGVjZC05NGM1OGI1NmFjYTYifSwiaXNzIjoiaHR0cHM6XC9cL2FwaS1pbS10ZXN0LnN1bmRzdmFsbC5zZTo0NDNcL29hdXRoMlwvdG9rZW4iLCJ0aWVySW5mbyI6eyJVbmxpbWl0ZWQiOnsidGllclF1b3RhVHlwZSI6InJlcXVlc3RDb3VudCIsImdyYXBoUUxNYXhDb21wbGV4aXR5IjowLCJncmFwaFFMTWF4RGVwdGgiOjAsInN0b3BPblF1b3RhUmVhY2giOnRydWUsInNwaWtlQXJyZXN0TGltaXQiOjAsInN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5EoU1wKrwtNTmSxZ5SwUMV41OJ4Ig0-fZTQ7RigROWFCKGnPqe6r5zSJo7Y6r01dS5bjA35Ohi4UCabQgYGQ==

Swagger ui
docExpansionlist
operationsSorteralpha
urlhttps://
microservices-test.sundsvall.se/sandbox/agreement/
api-docs

Säkerhetsklassning

Säkerhetsklass <0, 1, 2, 3, 4>

Autentiseringsmetod: Oauth2

(Ref: Säkerhetsklassning av APIer )

API-ägare

<Kontaktuppgifter till den verksamhet som äger APIets livscykel>

Teknisk ägare

https://sundsvall.atlassian.net/wiki/spaces/API

För tekniska frågor: teamunmasked@sundsvall.se

Länkar

FAQ

<FAQ>