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

js.TestController.js Maven / Gradle / Ivy

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

export function testGetById(id) {
 return request({
   url: '/test/testGet/'+id,
   method: 'get',
   
 });
}

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

 });
}

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

 });
}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy