在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):noamt/rest-gradle-plugin开源软件地址(OpenSource Url):https://github.com/noamt/rest-gradle-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):REST Gradle PluginA Gradle plugin that provides a task infrastructure to perform REST requestsUsage
For example, a POST request task: task attack(type: org._10ne.gradle.rest.RestTask) {
httpMethod = 'post'
uri = 'https://battle.server.com/attack'
username = 'player'
password = 'password'
requestBody = [battleCry: 'FOR LEEROY JENKINS!']
contentType = groovyx.net.http.ContentType.JSON
requestHeaders = [customHeader: 'WoW']
responseHandler = {
//Configured content type is JSON and we let the client's handler parse the response for us
assert it.message == 'success'
}
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论