2// Warning: this file is auto-generated.
5export default class SolarisClient {
6 constructor(endpoint) {
7 this.endpoint = endpoint;
11 return this.endpoint + '/healthz';
15 return await fetch(this.getHealthzUrl(), {
18 Accept: 'application/json',
24 return this.endpoint + '/';
28 return await fetch(this.getUrl(), {
31 Accept: 'application/json',
37 return this.endpoint + '/images';
41 return await fetch(this.getImagesUrl(), {
44 Accept: 'application/json',
50 return this.endpoint + '/ships';
54 return await fetch(this.getShipsUrl(), {
57 Accept: 'application/json',
62 getShipsByPatpUrl(patp) {
63 return this.endpoint + '/ships/' + encodeURIComponent(patp) + '';
66 async getShipsByPatp(patp) {
67 return await fetch(this.getShipsByPatpUrl(patp), {
70 Accept: 'application/json',
75 getShipsByPatpDetailsUrl(patp) {
76 return this.endpoint + '/ships/' + encodeURIComponent(patp) + '/details';
79 async getShipsByPatpDetails(patp) {
80 return await fetch(this.getShipsByPatpDetailsUrl(patp), {
83 Accept: 'application/json',
89 return this.endpoint + '/ships';
92 async postShips(data) {
93 return await fetch(this.postShipsUrl(), {
96 body: JSON.stringify(data),
98 Accept: 'application/json',
99 '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