Apache/CXF: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Versioning== | |||
<source lang="bash"> | |||
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 | |||
</source> | |||
<source lang="bash"> | |||
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 | |||
</source> | |||
==JAX-RS== | ==JAX-RS== | ||
<source lang="bash"> | <source lang="bash"> | ||
# find all | # find all | ||
curl --request GET \ | curl --request GET \ | ||
--url http://api.chorke.org/academia | --url http://api.chorke.org/academia/v1.0.00/api/projects \ | ||
--header 'authorization: Basic dXNlcjpwYXNz' \ | --header 'authorization: Basic dXNlcjpwYXNz' \ | ||
--header 'content-type: application/json' \ | --header 'content-type: application/json' \ | ||
Line 12: | Line 26: | ||
# find by id | # find by id | ||
curl --request GET \ | curl --request GET \ | ||
--url http://api.chorke.org/academia | --url http://api.chorke.org/academia/v1.0.00/api/projects/1 \ | ||
--header 'authorization: Basic dXNlcjpwYXNz' \ | --header 'authorization: Basic dXNlcjpwYXNz' \ | ||
--header 'content-type: application/json' \ | --header 'content-type: application/json' \ | ||
Line 21: | Line 35: | ||
# create/save | # create/save | ||
curl --request POST \ | curl --request POST \ | ||
--url http://api.chorke.org/academia | --url http://api.chorke.org/academia/v1.0.00/api/projects \ | ||
--header 'authorization: Basic dXNlcjpwYXNz' \ | --header 'authorization: Basic dXNlcjpwYXNz' \ | ||
--header 'content-type: application/json' \ | --header 'content-type: application/json' \ | ||
Line 31: | Line 45: | ||
# update by id | # update by id | ||
curl --request PUT \ | curl --request PUT \ | ||
--url http://api.chorke.org/academia | --url http://api.chorke.org/academia/v1.0.00/api/projects/1 \ | ||
--header 'authorization: Basic dXNlcjpwYXNz' \ | --header 'authorization: Basic dXNlcjpwYXNz' \ | ||
--header 'content-type: application/json' \ | --header 'content-type: application/json' \ | ||
Line 41: | Line 55: | ||
# delete by id | # delete by id | ||
curl --request DELETE \ | curl --request DELETE \ | ||
--url http://api.chorke.org/academia | --url http://api.chorke.org/academia/v1.0.00/api/projects/1 \ | ||
--header 'authorization: Basic dXNlcjpwYXNz' \ | --header 'authorization: Basic dXNlcjpwYXNz' \ | ||
--header 'content-type: application/json' \ | --header 'content-type: application/json' \ | ||
Line 52: | 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