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 await fetch(this.endpoint + '/healthz', {
16 'Accept': 'application/json',
22 return await fetch(this.endpoint + '/', {
25 'Accept': 'application/json',
31 return await fetch(this.endpoint + '/images', {
34 'Accept': 'application/json',
40 return await fetch(this.endpoint + '/ships', {
43 'Accept': 'application/json',
48 async getShipsByPatp(patp) {
49 return await fetch(this.endpoint + '/ships/' + encodeURIComponent(patp) + '', {
52 'Accept': 'application/json',
57 async getShipsByPatpDetails(patp) {
58 return await fetch(this.endpoint + '/ships/' + encodeURIComponent(patp) + '/details', {
61 'Accept': 'application/json',
66 async getShipsByPatpEvents(patp) {
67 return await fetch(this.endpoint + '/ships/' + encodeURIComponent(patp) + '/events', {
70 'Accept': 'application/json',
75 async postShips(data) {
76 return await fetch(this.endpoint + '/ships', {
79 body: JSON.stringify(data),
81 'Accept': 'application/json',
82 '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