All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.HelloController.js Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
import request from 'axios';

export function hello() {
 return request({
   url: '/hello/helloGet',
   method: 'get',
   
 });
}

export function helloNotRestful(id, name) {
 return request({
   url: '/hello/helloNotRestful',
   method: 'get',
   param: {
     id: id,
     name: name,
   }

 });
}

export function helloPost(body) {
 return request({
   url: '/hello/helloPost',
   method: 'post',
   data: {
     body: body,
   }

 });
}

export function helloGetById(id) {
 return request({
   url: '/hello/helloGet/'+id,
   method: 'get',
   
 });
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy