{"version":3,"file":"js/documentation-c4ca4e1b613fed538abe.js","mappings":"0IAwBA,MAAMA,EAAgB,CACpBC,QAAS,QACTC,KAAM,CACJC,MAAO,eACPC,QAAS,OAEXC,QAAS,CACP,CACEC,IAAK,0CACLC,YAAa,4BAEf,CACED,IAAK,8CACLC,YAAa,+CAEf,CACED,IAAK,qDACLC,YAAa,2DAGjBC,SAAU,CACR,CAAEC,WAAY,KAEhBC,MAAO,I,g9BC5CS,CAChB,gBAAiB,CACfC,IAAK,CACHC,KAAM,CAAC,aACPC,QAAS,+BACTC,WAAY,CACV,CAAEC,KAAM,kCACR,CAAEA,KAAM,kCAEVC,UAAW,CACT,IAAK,CACHT,YAAa,wDACbU,QAAS,CACP,mBAAoB,CAClBC,OAAQ,CACNC,KAAM,QACNC,MAAO,CACLjB,MAAO,uBACPgB,KAAM,SACNE,WAAY,CACVC,GAAI,CACFH,KAAM,UACNZ,YAAa,sBAEfgB,KAAM,CACJJ,KAAM,SACNZ,YAAa,yBAQ3B,IAAK,CACHQ,KAAM,6C,4hMDedS,WAAY,CACVV,WAAY,I,qYAIZE,UAAW,I,6YAIXS,gBAAiB,I,udAIrBC,OAAOC,qBAAuB,MAC5BC,EAAAA,EAAAA,GAAU,CAAEC,OAAQ,iBAAkBC,KAAM9B,GAAgB,C","sources":["webpack://collecte/./app/javascript/packs/documentation.js","webpack://collecte/./app/javascript/documentation/paths/v1/ensembles.js"],"sourcesContent":["import 'core-js/stable'\nimport 'regenerator-runtime/runtime'\n\n// Libraries\nimport swaggerUI from 'swagger-ui'\nimport 'swagger-ui/dist/swagger-ui.css'\n\n// Paths\nimport login from '../documentation/paths/v1/login.json'\nimport refresh from '../documentation/paths/v1/refresh.json'\nimport ensembles from '../documentation/paths/v1/ensembles'\nimport users from '../documentation/paths/v1/users.json'\n\n// Parameters components\nimport offsetParam from '../documentation/components/parameters/offset.json'\nimport limitParam from '../documentation/components/parameters/limit.json'\n\n// Responses components\nimport unauthorized from '../documentation/components/responses/unauthorized.json'\nimport unprocessableContent from '../documentation/components/responses/unprocessable_content.json'\n\n// Security Schemes components\nimport bearerAuth from '../documentation/components/security_schemes/bearer_auth.json'\n\nconst specification = {\n openapi: '3.1.0',\n info: {\n title: 'Collecte API',\n version: '1.0'\n },\n servers: [\n {\n url: 'https://collecte.avis-locataire.com/api',\n description: 'Main (production) server'\n },\n {\n url: 'https://collecte.lab.avis-locataire.com/api',\n description: 'Internal staging server for general testing'\n },\n {\n url: 'https://collecte-mobile.lab.avis-locataire.com/api',\n description: 'Internal staging server for mobile application testing'\n }\n ],\n security: [\n { bearerAuth: [] }\n ],\n paths: {\n ...login,\n ...refresh,\n ...ensembles,\n ...users\n },\n components: {\n parameters: {\n ...offsetParam,\n ...limitParam\n },\n responses: {\n ...unauthorized,\n ...unprocessableContent\n },\n securitySchemes: { ...bearerAuth }\n }\n}\n\nwindow.swaggerDocumentation = () => {\n swaggerUI({ dom_id: '#documentation', spec: specification }) // eslint-disable-line camelcase\n}\n","import resources from './ensembles/resources.json'\nimport variables from './ensembles/variables.json'\n\nconst ensembles = {\n '/v1/ensembles': {\n get: {\n tags: ['ensembles'],\n summary: 'Retrieve a list of ensembles',\n parameters: [\n { $ref: '#/components/parameters/offset' },\n { $ref: '#/components/parameters/limit' }\n ],\n responses: {\n 200: {\n description: 'A JSON array containing each ensembles as JSON object',\n content: {\n 'application/json': {\n schema: {\n type: 'array',\n items: {\n title: 'Ensemble information',\n type: 'object',\n properties: {\n id: {\n type: 'integer',\n description: 'Ensemble\\'s uniq id'\n },\n name: {\n type: 'string',\n description: 'Ensemble\\'s name'\n }\n }\n }\n }\n }\n }\n },\n 401: {\n $ref: '#/components/responses/unauthorized'\n }\n }\n }\n },\n ...resources,\n ...variables\n}\n\nexport default ensembles\n"],"names":["specification","openapi","info","title","version","servers","url","description","security","bearerAuth","paths","get","tags","summary","parameters","$ref","responses","content","schema","type","items","properties","id","name","components","securitySchemes","window","swaggerDocumentation","swaggerUI","dom_id","spec"],"sourceRoot":""}