/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
web-modules/raml-modules/modularization/api.raml
47 строк
1 KB
anuragkumawat
JAVA-14176 Rename raml to raml-modules (#12673)
03 сен 2022, 09:25
03 сен 2022, 09:25
e33334d
Код
Авторство
О чём код?
#%RAML 1.0 title: Baeldung Foo REST Services API uses: security: !include libraries/security.raml version: v1 protocols: [ HTTPS ] baseUri: http://rest-api.baeldung.com/api/{version} mediaType: application/json securedBy: [ security.basicAuth ] types: Foo: !include types/Foo.raml Bar: !include types/Bar.raml Error: !include types/Error.raml resourceTypes: - collection: !include resourceTypes/collection.raml - item: !include resourceTypes/item.raml traits: - hasRequestItem: !include traits/hasRequestItem.raml - hasResponseItem: !include traits/hasResponseItem.raml - hasResponseCollection: !include traits/hasResponseCollection.raml - hasNotFound: !include traits/hasNotFound.raml /foos: type: collection typeName: Foo get: queryParameters: name?: string ownerName?: string /{fooId}: type: item typeName: Foo /name/{name}: get: description: List all foos with a certain name typeName: Foo is: [ hasResponseCollection ] /bars: type: collection typeName: Bar /{barId}: type: item typeName: Bar /fooId/{fooId}: get: description: Get all bars for the matching fooId typeName: Bar is: [ hasResponseCollection ]