Apache/CXF: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
<source lang="bash"> | <source lang="bash"> | ||
curl http://api.chorke.org/academia/v1.1.10/app/projects | curl http://api.chorke.org/academia/v1.1.10/app/projects | ||
curl http://api.chorke.org/academia/v1.1.10/doc/projects | |||
curl http://api.chorke.org/academia/v1.1.10/gui/projects | curl http://api.chorke.org/academia/v1.1.10/gui/projects | ||
</source> | </source> | ||
Line 65: | Line 66: | ||
* [https://code.massoudafrashteh.com/spring-boot-cxf-jaxrs-hibernate-maven-swagger-ui Spring Boot, Apache CXF, Swagger under JAX-RS] | * [https://code.massoudafrashteh.com/spring-boot-cxf-jaxrs-hibernate-maven-swagger-ui Spring Boot, Apache CXF, Swagger under JAX-RS] | ||
* [https://www.opencodez.com/java/soap-web-services-with-apache-cxf-spring-boot.htm Soap Web Services with Apache CXF and Spring] | * [https://www.opencodez.com/java/soap-web-services-with-apache-cxf-spring-boot.htm Soap Web Services with Apache CXF and Spring] | ||
* [https://stackoverflow.com/questions/42054384 Configure oAuth2 with password flow Swagger] | |||
* [https://tassioauad.com/2018/01/03/simple-project-spring-boot-apache-cxf-jax-ws Spring Boot and Apache CXF (JAX-WS)] | * [https://tassioauad.com/2018/01/03/simple-project-spring-boot-apache-cxf-jax-ws Spring Boot and Apache CXF (JAX-WS)] | ||
* [https://github.com/codecentric/cxf-spring-boot-starter Enterprise & production ready SOAP] | * [https://github.com/codecentric/cxf-spring-boot-starter Enterprise & production ready SOAP] |
Latest revision as of 23:18, 23 November 2019
Versioning
curl http://api.chorke.org/academia/v1.0.00/api/projects
curl http://api.chorke.org/academia/v1.0.01/api/projects
curl http://api.chorke.org/academia/v1.1.00/api/projects
curl http://api.chorke.org/academia/v1.1.10/api/projects
curl http://api.chorke.org/academia/v1.1.10/app/projects
curl http://api.chorke.org/academia/v1.1.10/doc/projects
curl http://api.chorke.org/academia/v1.1.10/gui/projects
JAX-RS
# find all
curl --request GET \
--url http://api.chorke.org/academia/v1.0.00/api/projects \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache'
# find by id
curl --request GET \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache'
# create/save
curl --request POST \
--url http://api.chorke.org/academia/v1.0.00/api/projects \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"name": "Academia"}'
# update by id
curl --request PUT \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"id": "1", "name": "Academia"}'
# delete by id
curl --request DELETE \
--url http://api.chorke.org/academia/v1.0.00/api/projects/1 \
--header 'authorization: Basic dXNlcjpwYXNz' \
--header 'content-type: application/json' \
--header 'cache-control: no-cache' \
--data '{"id": "1", "name": "Academia"}'
References
- Spring Boot, Apache CXF, Swagger under JAX-RS
- Soap Web Services with Apache CXF and Spring
- Configure oAuth2 with password flow Swagger
- Spring Boot and Apache CXF (JAX-WS)
- Enterprise & production ready SOAP
- A Guide to Apache CXF with Spring
- Spring Boot CXF JAX-WS Starter
- Spring Boot and Apache CXF
- Spring Boot Jersey Example