Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add file to support easier testing of the API while in IntelliJ
- Loading branch information
1 parent
f1106d3
commit f8a9f5a
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
### Is it running? | ||
GET http://localhost:8080/running | ||
|
||
### Is it running? | ||
GET http://localhost:8080/_ah/health | ||
|
||
### Analyze and retrieve as JSON | ||
POST http://localhost:8080/yauaa/v1/analyze/json | ||
Content-Type: text/plain | ||
|
||
Mozilla/5.0 (Linux; Android 10; Nokia 7.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Mobile Safari/537.36 | ||
|
||
### Analyze and retrieve as XML | ||
POST http://localhost:8080/yauaa/v1/analyze/xml | ||
Content-Type: text/plain | ||
|
||
Mozilla/5.0 (Linux; Android 10; Nokia 7.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Mobile Safari/537.36 | ||
|
||
|
||
### Analyze and retrieve as YAML | ||
POST http://localhost:8080/yauaa/v1/analyze/yaml | ||
Content-Type: text/plain | ||
|
||
Mozilla/5.0 (Linux; Android 10; Nokia 7.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Mobile Safari/537.36 | ||
|
||
### Run preheat | ||
GET http://localhost:8080/yauaa/v1/preheat | ||
|
||
### Run all tests | ||
GET http://localhost:8080/yauaa/v1/runtests | ||
|
||
|
||
|
||
|
||
|
||
### Yet Another UserAgent Analyzer | ||
### Copyright (C) 2013-2021 Niels Basjes | ||
### | ||
### Licensed under the Apache License, Version 2.0 (the "License"); | ||
### you may not use this file except in compliance with the License. | ||
### You may obtain a copy of the License at | ||
### | ||
### https://www.apache.org/licenses/LICENSE-2.0 | ||
### | ||
### Unless required by applicable law or agreed to in writing, software | ||
### distributed under the License is distributed on an "AS IS" BASIS, | ||
### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
### See the License for the specific language governing permissions and | ||
### limitations under the License. |