1/* eslint-disable prettier/prettier */
4// Warning: this file is auto-generated.
7export default class SolarisClient {
8 constructor(endpoint) {
9 this.endpoint = endpoint;
13 return this.endpoint + '/healthz';
17 return await fetch(this.getHealthzUrl(), {
20 Accept: 'application/json',
26 return this.endpoint + '/';
30 return await fetch(this.getUrl(), {
33 Accept: 'application/json',
39 return this.endpoint + '/images';
43 return await fetch(this.getImagesUrl(), {
46 Accept: 'application/json',
52 return this.endpoint + '/ships';
56 return await fetch(this.getShipsUrl(), {
59 Accept: 'application/json',
64 getShipsByPatpUrl(patp) {
65 return this.endpoint + '/ships/' + encodeURIComponent(patp) + '';
68 async getShipsByPatp(patp) {
69 return await fetch(this.getShipsByPatpUrl(patp), {
72 Accept: 'application/json',
77 getShipsByPatpDetailsUrl(patp) {
78 return this.endpoint + '/ships/' + encodeURIComponent(patp) + '/details';
81 async getShipsByPatpDetails(patp) {
82 return await fetch(this.getShipsByPatpDetailsUrl(patp), {
85 Accept: 'application/json',
91 return this.endpoint + '/ships';
94 async postShips(data) {
95 return await fetch(this.postShipsUrl(), {
98 body: JSON.stringify(data),
100 Accept: 'application/json',
101 'Content-Type': 'application/json',
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list