Ignore:
Timestamp:
May 25, 2019, 5:40:08 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
70f328b
Parents:
28198a1
git-author:
Joachim Langenbach <joachim.langenbach@…> (05/22/19 18:20:13)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (05/25/19 17:40:08)
Message:

Gauges could be added now

Location:
src/mapservice-webclient/src-gen/gnuboat-mapservice
Files:
6 added
4 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice-webclient/src-gen/gnuboat-mapservice/api/users.service.ts

    r28198a1 r13cbe66  
    148148        let headers = this.defaultHeaders;
    149149
    150         // authentication (apiKeyAuth) required
    151         if (this.configuration.apiKeys && this.configuration.apiKeys["X-API-KEY"]) {
    152             headers = headers.set('X-API-KEY', this.configuration.apiKeys["X-API-KEY"]);
    153         }
    154 
    155150        // authentication (basicAuth) required
    156151        if (this.configuration.username || this.configuration.password) {
    … …  
    197192        let headers = this.defaultHeaders;
    198193
    199         // authentication (apiKeyAuth) required
    200         if (this.configuration.apiKeys && this.configuration.apiKeys["X-API-KEY"]) {
    201             headers = headers.set('X-API-KEY', this.configuration.apiKeys["X-API-KEY"]);
    202         }
    203 
    204194        // authentication (basicAuth) required
    205195        if (this.configuration.username || this.configuration.password) {
    … …  
    231221    /**
    232222     * Returns info of a user
    233      * Returns information for a user
     223     * Returns information of current/authorized user
    234224     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
    235225     * @param reportProgress flag to report request and response progress.
  • src/mapservice-webclient/src-gen/gnuboat-mapservice/api/waters.service.ts

    r28198a1 r13cbe66  
    1919import { Observable }                                        from 'rxjs/Observable';
    2020
     21import { Gauge } from '../model/gauge';
     22import { GaugeCreation } from '../model/gaugeCreation';
    2123import { HttpError } from '../model/httpError';
    2224import { Water } from '../model/water';
    … …  
    6163
    6264    /**
    63      * Represents a water
    64      * Returns the water identified by id
    65      * @param id Item ID
    66      * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
    67      * @param reportProgress flag to report request and response progress.
    68      */
    69     public waterGetById(id: number, observe?: 'body', reportProgress?: boolean): Observable<Water>;
    70     public waterGetById(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Water>>;
    71     public waterGetById(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Water>>;
    72     public waterGetById(id: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
    73         if (id === null || id === undefined) {
    74             throw new Error('Required parameter id was null or undefined when calling waterGetById.');
    75         }
    76 
    77         let headers = this.defaultHeaders;
    78 
    79         // to determine the Accept header
    80         const httpHeaderAccepts: string[] = [
    81             'application/json'
    82         ];
    83         const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
    84         if (httpHeaderAcceptSelected !== undefined) {
    85             headers = headers.set('Accept', httpHeaderAcceptSelected);
    86         }
    87 
    88         // to determine the Content-Type header
    89         const consumes: string[] = [
    90         ];
    91 
    92         return this.httpClient.get<Water>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(id))}`,
    93             {
    94                 withCredentials: this.configuration.withCredentials,
    95                 headers: headers,
    96                 observe: observe,
    97                 reportProgress: reportProgress
    98             }
    99         );
    100     }
    101 
    102     /**
    10365     * Add a new water
    10466     * Adds a new water to the database
    … …  
    144106            waterCreation,
    145107            {
     108                withCredentials: this.configuration.withCredentials,
     109                headers: headers,
     110                observe: observe,
     111                reportProgress: reportProgress
     112            }
     113        );
     114    }
     115
     116    /**
     117     * Add a new water
     118     * Adds a new gauge for water waterId to the database
     119     * @param waterId Water ID
     120     * @param gaugeCreation
     121     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     122     * @param reportProgress flag to report request and response progress.
     123     */
     124    public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe?: 'body', reportProgress?: boolean): Observable<Gauge>;
     125    public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Gauge>>;
     126    public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Gauge>>;
     127    public watersGaugeCreate(waterId: number, gaugeCreation?: GaugeCreation, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
     128        if (waterId === null || waterId === undefined) {
     129            throw new Error('Required parameter waterId was null or undefined when calling watersGaugeCreate.');
     130        }
     131
     132        let headers = this.defaultHeaders;
     133
     134        // authentication (apiKeyAuth) required
     135        if (this.configuration.apiKeys && this.configuration.apiKeys["X-API-KEY"]) {
     136            headers = headers.set('X-API-KEY', this.configuration.apiKeys["X-API-KEY"]);
     137        }
     138
     139        // authentication (basicAuth) required
     140        if (this.configuration.username || this.configuration.password) {
     141            headers = headers.set('Authorization', 'Basic ' + btoa(this.configuration.username + ':' + this.configuration.password));
     142        }
     143        // to determine the Accept header
     144        const httpHeaderAccepts: string[] = [
     145            'application/json',
     146            'application/geo+json'
     147        ];
     148        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
     149        if (httpHeaderAcceptSelected !== undefined) {
     150            headers = headers.set('Accept', httpHeaderAcceptSelected);
     151        }
     152
     153        // to determine the Content-Type header
     154        const consumes: string[] = [
     155            'application/json'
     156        ];
     157        const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
     158        if (httpContentTypeSelected !== undefined) {
     159            headers = headers.set('Content-Type', httpContentTypeSelected);
     160        }
     161
     162        return this.httpClient.post<Gauge>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges`,
     163            gaugeCreation,
     164            {
     165                withCredentials: this.configuration.withCredentials,
     166                headers: headers,
     167                observe: observe,
     168                reportProgress: reportProgress
     169            }
     170        );
     171    }
     172
     173    /**
     174     * Represents a gauge
     175     * Returns the gauge identified by id
     176     * @param waterId Water ID
     177     * @param gaugeId Gauge ID
     178     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     179     * @param reportProgress flag to report request and response progress.
     180     */
     181    public watersGaugeGetById(waterId: number, gaugeId: number, observe?: 'body', reportProgress?: boolean): Observable<Gauge>;
     182    public watersGaugeGetById(waterId: number, gaugeId: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Gauge>>;
     183    public watersGaugeGetById(waterId: number, gaugeId: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Gauge>>;
     184    public watersGaugeGetById(waterId: number, gaugeId: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
     185        if (waterId === null || waterId === undefined) {
     186            throw new Error('Required parameter waterId was null or undefined when calling watersGaugeGetById.');
     187        }
     188        if (gaugeId === null || gaugeId === undefined) {
     189            throw new Error('Required parameter gaugeId was null or undefined when calling watersGaugeGetById.');
     190        }
     191
     192        let headers = this.defaultHeaders;
     193
     194        // to determine the Accept header
     195        const httpHeaderAccepts: string[] = [
     196            'application/json',
     197            'application/geo+json'
     198        ];
     199        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
     200        if (httpHeaderAcceptSelected !== undefined) {
     201            headers = headers.set('Accept', httpHeaderAcceptSelected);
     202        }
     203
     204        // to determine the Content-Type header
     205        const consumes: string[] = [
     206        ];
     207
     208        return this.httpClient.get<Gauge>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges/${encodeURIComponent(String(gaugeId))}`,
     209            {
     210                withCredentials: this.configuration.withCredentials,
     211                headers: headers,
     212                observe: observe,
     213                reportProgress: reportProgress
     214            }
     215        );
     216    }
     217
     218    /**
     219     * Find gauges of water waterId by gaugeId
     220     * Returns all gauges of water waterId
     221     * @param waterId Water ID
     222     * @param name
     223     * @param manager
     224     * @param orderBy Order by field: name
     225     * @param offset Skip over a number of elements by specifying an offset value for the query
     226     * @param limit Limit the number of elements on the response
     227     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     228     * @param reportProgress flag to report request and response progress.
     229     */
     230    public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'body', reportProgress?: boolean): Observable<Array<Gauge>>;
     231    public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<Gauge>>>;
     232    public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<Gauge>>>;
     233    public watersGaugesGet(waterId: number, name?: string, manager?: string, orderBy?: string, offset?: number, limit?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
     234        if (waterId === null || waterId === undefined) {
     235            throw new Error('Required parameter waterId was null or undefined when calling watersGaugesGet.');
     236        }
     237
     238        let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
     239        if (name !== undefined && name !== null) {
     240            queryParameters = queryParameters.set('name', <any>name);
     241        }
     242        if (manager !== undefined && manager !== null) {
     243            queryParameters = queryParameters.set('manager', <any>manager);
     244        }
     245        if (orderBy !== undefined && orderBy !== null) {
     246            queryParameters = queryParameters.set('orderBy', <any>orderBy);
     247        }
     248        if (offset !== undefined && offset !== null) {
     249            queryParameters = queryParameters.set('offset', <any>offset);
     250        }
     251        if (limit !== undefined && limit !== null) {
     252            queryParameters = queryParameters.set('limit', <any>limit);
     253        }
     254
     255        let headers = this.defaultHeaders;
     256
     257        // to determine the Accept header
     258        const httpHeaderAccepts: string[] = [
     259            'application/json',
     260            'application/geo+json'
     261        ];
     262        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
     263        if (httpHeaderAcceptSelected !== undefined) {
     264            headers = headers.set('Accept', httpHeaderAcceptSelected);
     265        }
     266
     267        // to determine the Content-Type header
     268        const consumes: string[] = [
     269        ];
     270
     271        return this.httpClient.get<Array<Gauge>>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(waterId))}/gauges`,
     272            {
     273                params: queryParameters,
    146274                withCredentials: this.configuration.withCredentials,
    147275                headers: headers,
    … …  
    211339    }
    212340
     341    /**
     342     * Represents a water
     343     * Returns the water identified by id
     344     * @param id Item ID
     345     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     346     * @param reportProgress flag to report request and response progress.
     347     */
     348    public watersGetById(id: number, observe?: 'body', reportProgress?: boolean): Observable<Water>;
     349    public watersGetById(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Water>>;
     350    public watersGetById(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Water>>;
     351    public watersGetById(id: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
     352        if (id === null || id === undefined) {
     353            throw new Error('Required parameter id was null or undefined when calling watersGetById.');
     354        }
     355
     356        let headers = this.defaultHeaders;
     357
     358        // to determine the Accept header
     359        const httpHeaderAccepts: string[] = [
     360            'application/json'
     361        ];
     362        const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
     363        if (httpHeaderAcceptSelected !== undefined) {
     364            headers = headers.set('Accept', httpHeaderAcceptSelected);
     365        }
     366
     367        // to determine the Content-Type header
     368        const consumes: string[] = [
     369        ];
     370
     371        return this.httpClient.get<Water>(`${this.configuration.basePath}/waters/${encodeURIComponent(String(id))}`,
     372            {
     373                withCredentials: this.configuration.withCredentials,
     374                headers: headers,
     375                observe: observe,
     376                reportProgress: reportProgress
     377            }
     378        );
     379    }
     380
    213381}
  • src/mapservice-webclient/src-gen/gnuboat-mapservice/model/models.ts

    r28198a1 r13cbe66  
     1export * from './gauge';
     2export * from './gaugeCreation';
     3export * from './gaugeGeoJson';
     4export * from './gaugeGeoJsonProperties';
     5export * from './geoJsonPoint';
     6export * from './geoJsonType';
    17export * from './httpError';
    28export * from './order';
  • src/mapservice-webclient/src-gen/gnuboat-mapservice/model/water.ts

    r28198a1 r13cbe66  
    1010 * Do not edit the class manually.
    1111 */
     12import { Gauge } from './gauge';
    1213import { OsmType } from './osmType';
    1314
    … …  
    1920    osmId?: number;
    2021    osmType?: OsmType;
     22    gauges?: Array<Gauge>;
    2123}
    2224
Note: See TracChangeset for help on using the changeset viewer.