Hi Peter,
no, the libraries we use for encoding just reflect the structure of the
configuration Java objects, almost 1-1 (there
are some manual tweaks). Every time something new is added to the config
objects, the generated XML changes
accordingly. A client needs to be prepared to read what it can, and ignore
the rest.

Cheers
Andrea


On Tue, Oct 13, 2020 at 5:05 PM Peter Smythe <[email protected]> wrote:

> Hi all
>
> I wonder if anyone has any XML schema definitions for the REST APIs?  Our
> developers want to create a library for programatically accessing the API
> so XSD files would help.
>
> I see that the code does not make use of any (ref:
> src\restconfig\src\main\java\org\geoserver\rest\catalog\WorkspaceController.java)
> and the API documentation at
>
> https://docs.geoserver.org/latest/en/api/#1.0.0/workspaces.yaml
>
> only has example responses, e.g.
>
> Example Value
>
> *application/xml*
>
> <workspace>
>>   <name>topp</name>
>>   <dataStores>
>>     <atom:link xmlns:atom="http://www.w3.org/2005/Atom"; rel="alternate"
>> href="http://localhost:8080/geoserver/rest/workspaces/topp/datastores.xml";
>> type="application/xml"/>
>>   </dataStores>
>>   <coverageStores>
>>     <atom:link xmlns:atom="http://www.w3.org/2005/Atom"; rel="alternate"
>> href="
>> http://localhost:8080/geoserver/rest/workspaces/topp/coveragestores.xml";
>> type="application/xml"/>
>>   </coverageStores>
>>   <wmsStores>
>>     <atom:link xmlns:atom="http://www.w3.org/2005/Atom"; rel="alternate"
>> href="http://localhost:8080/geoserver/rest/workspaces/topp/wmsstores.xml";
>> type="application/xml"/>
>>   </wmsStores>
>> </workspace>
>
>
> Thanks
>
> Peter
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime

== GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to